mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-01 06:11:20 +00:00
28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"version": "1.7.1",
|
|
"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.7.1/nvs-1.7.1.msi",
|
|
"hash": "0769f6e8154c30be7fcaff2cd185fe278219f93b3cb4e6f86be869761e9bd5d1",
|
|
"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"
|
|
}
|
|
}
|