mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-06 08:41:20 +00:00
Nim: remove bin from PATH, add .nimble to PATH (#1859)
This commit is contained in:
parent
1927a8022b
commit
a96f851082
17
nim.json
17
nim.json
@ -18,7 +18,16 @@
|
|||||||
# Copy Nimble package
|
# Copy Nimble package
|
||||||
Copy-Item -Recurse $dir\\dist\\nimble\\src\\nimblepkg $dir\\bin
|
Copy-Item -Recurse $dir\\dist\\nimble\\src\\nimblepkg $dir\\bin
|
||||||
",
|
",
|
||||||
"env_add_path": "bin",
|
"bin": [
|
||||||
|
"bin\\c2nim.exe",
|
||||||
|
"bin\\makelink.exe",
|
||||||
|
"bin\\nim.exe",
|
||||||
|
"bin\\nimble.exe",
|
||||||
|
"bin\\nimgrab.exe",
|
||||||
|
"bin\\nimgrep.exe",
|
||||||
|
"bin\\nimsuggest.exe",
|
||||||
|
"bin\\vccexe.exe"
|
||||||
|
],
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "https://nim-lang.org/install_windows.html",
|
"url": "https://nim-lang.org/install_windows.html",
|
||||||
"re": "nim-([\\d.]+)_x64"
|
"re": "nim-([\\d.]+)_x64"
|
||||||
@ -36,5 +45,11 @@
|
|||||||
"hash": {
|
"hash": {
|
||||||
"url": "$url.sha256"
|
"url": "$url.sha256"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"installer": {
|
||||||
|
"script": "add_first_in_path \"$env:USERPROFILE\\.nimble\\bin\" $global"
|
||||||
|
},
|
||||||
|
"uninstaller": {
|
||||||
|
"script": "remove_from_path \"$env:USERPROFILE\\.nimble\\bin\" $global"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user