mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-03 07:11:21 +00:00
* nvs@1.6.0: Use call operator instead of powershell cli Closes #3350 * Quote nvs path in post install Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"version": "1.6.0",
|
|
"description": "Node Version Switcher - A cross-platform tool for switching between versions and forks of Node.js",
|
|
"homepage": "https://github.com/jasongin/nvs",
|
|
"license": "MIT",
|
|
"url": "https://github.com/jasongin/nvs/releases/download/v1.6.0/nvs-1.6.0.msi",
|
|
"hash": "95b0fdff01142d5aa56217e32f79fe27c12ee9ac976a1c4e160b0fd6e8db320f",
|
|
"extract_dir": "nvs",
|
|
"env_add_path": ".",
|
|
"persist": "nodejs",
|
|
"env_set": {
|
|
"NVS_HOME": "$dir\\nodejs"
|
|
},
|
|
"post_install": [
|
|
"& \"$dir\\nvs.ps1\" remote | Out-Null",
|
|
"$CONF = (Get-Content \"$persist_dir\\nodejs\\settings.json\") | ConvertFrom-Json",
|
|
"Add-Member -NotePropertyName linkToSystem -NotePropertyValue $false -Force -InputObject $CONF",
|
|
"ConvertTo-Json $CONF | Out-File -encoding \"ASCII\" \"$persist_dir\\nodejs\\settings.json\""
|
|
],
|
|
"uninstaller": {
|
|
"script": "nvs unlink | Out-Null"
|
|
},
|
|
"checkver": "github",
|
|
"autoupdate": {
|
|
"url": "https://github.com/jasongin/nvs/releases/download/v$version/nvs-$version.msi"
|
|
}
|
|
}
|