ScoopInstaller_Main/bucket/nodejs-lts.json
Azis Ramadhan 20598654bf
nodejs-lts: Fix checkver and add arm64 edition (#5657)
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
2024-04-06 22:07:27 +08:00

60 lines
2.2 KiB
JSON

{
"version": "20.12.1",
"description": "As an asynchronous event driven JavaScript runtime, Node is designed to build scalable network applications. (Long Term Support)",
"homepage": "https://nodejs.org",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://nodejs.org/dist/v20.12.1/node-v20.12.1-win-x64.7z",
"hash": "2628e9698f3bdada3fd36096fba0433fbd8f85832350bd5d2537f8f0ac50320f",
"extract_dir": "node-v20.12.1-win-x64"
},
"32bit": {
"url": "https://nodejs.org/dist/v20.12.1/node-v20.12.1-win-x86.7z",
"hash": "552c6fec6a0b28e9c49ad8574e4e67c35d9cfa718a3f940552e594e948caa6d9",
"extract_dir": "node-v20.12.1-win-x86"
},
"arm64": {
"url": "https://nodejs.org/dist/v20.12.1/node-v20.12.1-win-arm64.7z",
"hash": "17efd39f30e46b82ce94061ccee058fce3e1c3f1e5538a3f30463c52e5ab82e8",
"extract_dir": "node-v20.12.1-win-arm64"
}
},
"post_install": [
"# Set npm prefix to install modules inside bin and npm cache so they persist",
"Set-Content -Value \"prefix=$persist_dir\\bin`ncache=$persist_dir\\cache\" -Path \"$dir\\node_modules\\npm\\npmrc\""
],
"env_add_path": [
"bin",
"."
],
"persist": [
"bin",
"cache"
],
"checkver": {
"url": "https://nodejs.org/dist/index.json",
"jsonpath": "$..[?(@.lts != false)].version",
"regex": "v([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://nodejs.org/dist/v$version/node-v$version-win-x64.7z",
"extract_dir": "node-v$version-win-x64"
},
"32bit": {
"url": "https://nodejs.org/dist/v$version/node-v$version-win-x86.7z",
"extract_dir": "node-v$version-win-x86"
},
"arm64": {
"url": "https://nodejs.org/dist/v$version/node-v$version-win-arm64.7z",
"extract_dir": "node-v$version-win-arm64"
}
},
"hash": {
"url": "$baseurl/SHASUMS256.txt.asc"
}
}
}