Nim: remove bin from PATH, add .nimble to PATH (#1859)

This commit is contained in:
oltolm 2017-11-21 12:06:55 +01:00 committed by Richard Kuhnt
parent 1927a8022b
commit a96f851082

View File

@ -18,7 +18,16 @@
# Copy Nimble package
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": {
"url": "https://nim-lang.org/install_windows.html",
"re": "nim-([\\d.]+)_x64"
@ -36,5 +45,11 @@
"hash": {
"url": "$url.sha256"
}
},
"installer": {
"script": "add_first_in_path \"$env:USERPROFILE\\.nimble\\bin\" $global"
},
"uninstaller": {
"script": "remove_from_path \"$env:USERPROFILE\\.nimble\\bin\" $global"
}
}