Skip to content

Commit edb9d99

Browse files
richardlauTrott
authored andcommitted
Add Apple silicon binaries to releases from 16.0.0
Existing "macOS 64-bit Binary" is renamed to disambiguate the macOS binaries for Intel and Apple silicon.
1 parent 030f429 commit edb9d99

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

scripts/helpers/downloads.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ const allDownloads = [
2424
templateUrl: 'https://nodejs.org/dist/v%version%/node-v%version%.pkg'
2525
},
2626
{
27-
title: 'macOS 64-bit Binary',
27+
title: 'macOS Apple Silicon 64-bit Binary',
28+
templateUrl: 'https://nodejs.org/dist/v%version%/node-v%version%-darwin-arm64.tar.gz'
29+
},
30+
{
31+
title: 'macOS Intel 64-bit Binary',
2832
templateUrl: 'https://nodejs.org/dist/v%version%/node-v%version%-darwin-x64.tar.gz'
2933
},
3034
{
@@ -166,6 +170,12 @@ const resolveDownloads = (version) => {
166170
)
167171
}
168172

173+
if (semver.satisfies(version, '< 16.0.0')) {
174+
downloads = downloads.filter(ver =>
175+
ver.title !== 'macOS Apple Silicon 64-bit Binary'
176+
)
177+
}
178+
169179
return downloads
170180
}
171181

0 commit comments

Comments
 (0)