ScoopInstaller_Main/bucket/rustup-gnu.json
2025-05-05 16:29:51 +00:00

59 lines
2.3 KiB
JSON

{
"version": "1.28.2",
"description": "Manage multiple rust installations with ease",
"homepage": "https://rustup.rs",
"license": "MIT|Apache-2.0",
"notes": "This package defaults to using the GCC toolchain on install/update; use \"rustup set default-host\" to configure it",
"architecture": {
"64bit": {
"url": "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe",
"hash": "88d8258dcf6ae4f7a80c7d1088e1f36fa7025a1cfd1343731b4ee6f385121fc0"
},
"32bit": {
"url": "https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe",
"hash": "d33375f474f105e529ff3225529a8d6a79a8a4e23f6eab88fba427889e538f34"
},
"arm64": {
"url": "https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe",
"hash": "de9f7d29ccd39efa59a3dda3ec363b396e09b92681229b9b8f6aaa4c84285e9c"
}
},
"installer": {
"script": [
"[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')",
"[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')",
"$host_arch = switch ($architecture) { '64bit' { 'x86_64' } '32bit' { 'i686' } 'arm64' { 'arm64' } }",
"Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args @('-y', '--no-modify-path', '--default-host', \"$host_arch-pc-windows-gnu\") | Out-Null"
]
},
"env_add_path": ".cargo\\bin",
"env_set": {
"CARGO_HOME": "$persist_dir\\.cargo",
"RUSTUP_HOME": "$persist_dir\\.rustup"
},
"persist": [
".cargo",
".rustup"
],
"checkver": {
"url": "https://sh.rustup.rs",
"regex": "rustup-init ([\\d.]+) \\("
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe"
},
"32bit": {
"url": "https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe"
},
"arm64": {
"url": "https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe"
}
},
"hash": {
"url": "$url.sha256"
}
}
}