select the right Node download based on CPU architecture

This commit is contained in:
Brian Hicks 2023-05-02 10:20:59 -05:00
parent 810504f590
commit 67dba83688
No known key found for this signature in database
GPG Key ID: C4F324B9CAAB0D50

View File

@ -1,11 +1,17 @@
_NODE_URL = select({
"config//os:linux": "https://nodejs.org/dist/v20.0.0/node-v20.0.0-linux-x64.tar.xz",
"config//os:macos": "https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-arm64.tar.gz",
"config//os:macos": select({
"config//cpu:arm64": "https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-arm64.tar.gz",
"config//cpu:x86_64": "https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-x64.tar.gz",
}),
})
_NODE_SHA256 = select({
"config//os:linux": "9e512f1f1cadb3a5e37a10aa2d5e632f93aaf9f37165803e2ed981009970a3d7",
"config//os:macos": "ee27eea6694a5d8c834b11a12fb85a5dae01a91178be12920a6da12d8c299c43",
"config//os:macos": select({
"config//cpu:arm64": "ee27eea6694a5d8c834b11a12fb85a5dae01a91178be12920a6da12d8c299c43",
"config//cpu:x86_64": "a26019f8dc6f0b261b1eebabeedb00f478460c36950a99b5c7e161af005e400e",
}),
})
_NODE_PREFIX = select({