mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-13 04:01:19 +00:00
rustup: Add desc, mod url and fix license (#285)
Co-Authored-By: linsui <36977733+linsui@users.noreply.github.com>
This commit is contained in:
parent
c0a3cd729b
commit
3e26b5eb46
50
bucket/rustup-msvc.json
Normal file
50
bucket/rustup-msvc.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"homepage": "https://rustup.rs",
|
||||
"version": "1.18.3",
|
||||
"license": "MIT|Apache-2.0",
|
||||
"description": "Manage multiple rust installations with ease",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe",
|
||||
"hash": "9da383c67914eef4b8f880cb8e6d75f623f1261a08ed791a0404c3ebca8c3a5a"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://static.rust-lang.org/rustup/dist/i686-pc-windows-msvc/rustup-init.exe",
|
||||
"hash": "9b15c26905d4505ab77e000750aa3aedeb909507485c5e5901b6ad7de9d42e2d"
|
||||
}
|
||||
},
|
||||
"persist": [
|
||||
".cargo",
|
||||
".rustup"
|
||||
],
|
||||
"env_add_path": ".cargo\\bin",
|
||||
"env_set": {
|
||||
"CARGO_HOME": "$persist_dir\\.cargo",
|
||||
"RUSTUP_HOME": "$persist_dir\\.rustup"
|
||||
},
|
||||
"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"
|
||||
]
|
||||
},
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"hash": {
|
||||
"url": "$url.sha256"
|
||||
}
|
||||
},
|
||||
"notes": "To use the MSVC ABI without Visual Studio 2015 (or higher) installed, you will need the Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017"
|
||||
}
|
||||
@ -1,15 +1,17 @@
|
||||
{
|
||||
"homepage": "https://rustup.rs",
|
||||
"version": "1.18.3",
|
||||
"license": "MIT",
|
||||
"hash": "9b15c26905d4505ab77e000750aa3aedeb909507485c5e5901b6ad7de9d42e2d",
|
||||
"homepage": "https://github.com/rust-lang-nursery/rustup.rs",
|
||||
"checkver": {
|
||||
"url": "https://raw.githubusercontent.com/rust-lang-nursery/rustup.rs/master/Cargo.toml",
|
||||
"re": "version = \"(\\d+\\.\\d+\\.\\d+)\""
|
||||
"license": "MIT|Apache-2.0",
|
||||
"description": "Manage multiple rust installations with ease",
|
||||
"architecture": {
|
||||
"64bit": {
|
||||
"url": "https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe",
|
||||
"hash": "18f8d01a15d821617348e640da95b51a1642adf7ecccdc49b1d0c8df7229a3cf"
|
||||
},
|
||||
"url": "https://win.rustup.rs/#/rustup-init.exe",
|
||||
"autoupdate": {
|
||||
"url": "https://win.rustup.rs/#/rustup-init.exe"
|
||||
"32bit": {
|
||||
"url": "https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe",
|
||||
"hash": "9cbacf99f8308b95f7944e7e9d171b3bc3c1fa77242a1ce78ba7d09761a94807"
|
||||
}
|
||||
},
|
||||
"persist": [
|
||||
".cargo",
|
||||
@ -22,13 +24,27 @@
|
||||
},
|
||||
"installer": {
|
||||
"script": [
|
||||
"# Create environment variables for this process",
|
||||
"[Environment]::SetEnvironmentVariable('CARGO_HOME', \"$persist_dir\\.cargo\", 'Process')",
|
||||
"[Environment]::SetEnvironmentVariable('RUSTUP_HOME', \"$persist_dir\\.rustup\", 'Process')",
|
||||
"",
|
||||
"# Install Rustup",
|
||||
"& \"$dir\\rustup-init.exe\" -y --no-modify-path --default-toolchain stable-gnu"
|
||||
"Invoke-ExternalCommand -Path \"$dir\\rustup-init.exe\" -Args '-y --no-modify-path' | Out-Null"
|
||||
]
|
||||
},
|
||||
"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-gnu/rustup-init.exe"
|
||||
},
|
||||
"32bit": {
|
||||
"url": "https://static.rust-lang.org/rustup/dist/i686-pc-windows-gnu/rustup-init.exe"
|
||||
}
|
||||
},
|
||||
"hash": {
|
||||
"url": "$url.sha256"
|
||||
}
|
||||
},
|
||||
"notes": "To use the MSVC ABI without Visual Studio 2015 (or higher) installed, you will need the Visual Studio 2017 Build Tools: https://www.visualstudio.com/downloads/#build-tools-for-visual-studio-2017"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user