generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cargo-binstall.json
43 lines (43 loc) · 1.86 KB
/
cargo-binstall.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"version": "1.10.2",
"description": "cargo binstall provides a low-complexity mechanism for installing rust binaries as an alternative to building from source (via cargo install) or manually downloading packages.",
"homepage": "https://github.com/ryankurte/cargo-binstall",
"license": "GPL-3.0",
"url": "https://github.com/ryankurte/cargo-binstall/releases/download/v1.10.2/cargo-binstall-x86_64-pc-windows-msvc.zip",
"hash": "e63cd05aa7e4705e48bf401f00b86543ee294ad0bce1a398a75997b48022daf8",
"bin": "cargo-binstall.exe",
"notes": [
"The installer will try to find create a hard link in the cargo's bin directory",
"and the uninstaller will try to remove it."
],
"installer": {
"script": [
"if (![string]::IsNullOrEmpty($env:CARGO_HOME)) {",
" $Bin = \"$env:CARGO_HOME\\bin\"",
"} elseif (![string]::IsNullOrEmpty($CARGO_HOME)) {",
" $Bin = \"$CARGO_HOME\\bin\"",
"} else {",
" $Bin = \"$HOME\\.cargo\\bin\"",
"}",
"New-Item -Path \"$Bin\\cargo-binstall.exe\" -ItemType HardLink -Value \"$dir\\cargo-binstall.exe\""
]
},
"uninstaller": {
"script": [
"if (![string]::IsNullOrEmpty($env:CARGO_HOME)) {",
" $Bin = \"$env:CARGO_HOME\\bin\"",
"} elseif (![string]::IsNullOrEmpty($CARGO_HOME)) {",
" $Bin = \"$CARGO_HOME\\bin\"",
"} else {",
" $Bin = \"$HOME\\.cargo\\bin\"",
"}",
"if (Test-Path \"$Bin\\cargo-binstall.exe\") {",
" Remove-Item \"$Bin\\cargo-binstall.exe\"",
"}"
]
},
"checkver": "github",
"autoupdate": {
"url": "https://github.com/ryankurte/cargo-binstall/releases/download/v$version/cargo-binstall-x86_64-pc-windows-msvc.zip"
}
}