mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-02 23:01:19 +00:00
51 lines
1.9 KiB
JSON
51 lines
1.9 KiB
JSON
{
|
|
"version": "1.25.1",
|
|
"description": "Manage multiple rust installations with ease",
|
|
"homepage": "https://rustup.rs",
|
|
"license": "MIT|Apache-2.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://static.rust-lang.org/rustup/archive/1.25.1/x86_64-pc-windows-gnu/rustup-init.exe",
|
|
"hash": "f7367ca97f4b0e4d1f34181bcb68599099134c608bcf10257b4f64e6770395a6"
|
|
},
|
|
"32bit": {
|
|
"url": "https://static.rust-lang.org/rustup/archive/1.25.1/i686-pc-windows-gnu/rustup-init.exe",
|
|
"hash": "e463cca92bd26e89c7ef79880e68309482cde3cc62f166a2d3c785ea9a09d7cd"
|
|
}
|
|
},
|
|
"installer": {
|
|
"script": [
|
|
"[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')",
|
|
"[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')",
|
|
"$host_arch = if ($architecture -eq '64bit') {'x86_64'} else {'i686'}",
|
|
"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://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml",
|
|
"regex": "version = \"([\\d.]+)\""
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://static.rust-lang.org/rustup/archive/$version/x86_64-pc-windows-gnu/rustup-init.exe"
|
|
},
|
|
"32bit": {
|
|
"url": "https://static.rust-lang.org/rustup/archive/$version/i686-pc-windows-gnu/rustup-init.exe"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "$url.sha256"
|
|
}
|
|
}
|
|
}
|