From 5737020832b064828af73e509c86ac70e3b0132d Mon Sep 17 00:00:00 2001 From: Valentin <3774962+val1984@users.noreply.github.com> Date: Fri, 18 Oct 2024 10:39:03 +0200 Subject: [PATCH] nodejs22: add v22.10.0 --- bucket/nodejs22.json | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 bucket/nodejs22.json diff --git a/bucket/nodejs22.json b/bucket/nodejs22.json new file mode 100644 index 00000000000..cd8b86fedda --- /dev/null +++ b/bucket/nodejs22.json @@ -0,0 +1,58 @@ +{ + "version": "22.10.0", + "description": "An asynchronous event driven JavaScript runtime designed to build scalable network applications.", + "homepage": "https://nodejs.org", + "license": "MIT", + "architecture": { + "64bit": { + "url": "https://nodejs.org/dist/v22.10.0/node-v22.10.0-win-x64.7z", + "hash": "c5105910002a7cf89eaacc27fb85cb2f8551c0f7797ac52118f2398210d6135e", + "extract_dir": "node-v22.10.0-win-x64" + }, + "32bit": { + "url": "https://nodejs.org/dist/v22.10.0/node-v22.10.0-win-x86.7z", + "hash": "b0149ff0fa094cc765c2e373b1010776bab18a2eac6a7d3800e0599f11da1aa3", + "extract_dir": "node-v22.10.0-win-x86" + }, + "arm64": { + "url": "https://nodejs.org/dist/v22.10.0/node-v22.10.0-win-arm64.7z", + "hash": "afc49ad90023d7809e7ed0d6b86167e476c21e6482c202e71b49a369302bcedf", + "extract_dir": "node-v22.10.0-win-arm64" + } + }, + "persist": [ + "bin", + "cache" + ], + "env_add_path": [ + "bin", + "." + ], + "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\"" + ], + "checkver": { + "url": "https://nodejs.org/dist/latest-v22.x/", + "regex": "node-v([\\d.]+)-win-x64\\.7z" + }, + "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" + } + } +}