mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 22:31:19 +00:00
The rust-lang.org /archive/ endpoint does not provide the *current* version, only previous versions. This prevented scoop from auto-updating until a new version was released (always one version behind). This commit also adds arm64 architecture to the rustup-msvc and rustup-gnu manifests. As rustup.json and rustup-msvc.json are identical, I suggest that they be consolidated into one. See #6605.
66 lines
2.7 KiB
JSON
66 lines
2.7 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 MSVC toolchain in new installs; use \"rustup set default-host\" to configure it",
|
|
"(now equivalent to the rustup package)",
|
|
"According to https://doc.rust-lang.org/book/ch01-01-installation.html#installing-rustup-on-windows",
|
|
"Microsoft C++ Build Tools is needed and can be downloaded here: https://visualstudio.microsoft.com/visual-cpp-build-tools/",
|
|
"When installing build tools, these two components should be selected:",
|
|
"- MSVC - VS C++ x64/x86 build tools",
|
|
"- Windows SDK"
|
|
],
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe",
|
|
"hash": "7b83039a1b9305b0c50f23b2e2f03319b8d7859b28106e49ba82c06d81289df6"
|
|
},
|
|
"32bit": {
|
|
"url": "https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe",
|
|
"hash": "494bbeb52bd102891be4e7e5adc74eeb1c532adfdc33d51ae1aa9fd2ff5f1048"
|
|
},
|
|
"arm64": {
|
|
"url": "https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe",
|
|
"hash": "9054ad509637940709107920176f14cee334bc5cfe50bc0a24a3dc59b6f4d458"
|
|
}
|
|
},
|
|
"installer": {
|
|
"script": [
|
|
"[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')",
|
|
"[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')",
|
|
"Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args @('-y', '--no-modify-path') | 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/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"
|
|
}
|
|
}
|
|
}
|