2025-01-10 20:29:09 +00:00

57 lines
2.1 KiB
JSON

{
"homepage": "https://github.com/tristanisham/zvm",
"version": "0.8.4",
"description": "Zig Version Manager (zvm) is a tool for managing your Zig installs",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/tristanisham/zvm/releases/download/v0.8.4/zvm-windows-amd64.zip",
"hash": "432e0995f04b8e32e9590c7d2ba4c6de3271429f2d9cc8bdccd0c4f175d26d31",
"extract_dir": "zvm-windows-amd64"
},
"arm64": {
"url": "https://github.com/tristanisham/zvm/releases/download/v0.8.4/zvm-windows-arm64.zip",
"hash": "fe959af9ce0e5aa86bca7c225fd2b755c76aec21386447951ff725e6fd21c1cc",
"extract_dir": "zvm-windows-arm64"
}
},
"bin": "zvm.exe",
"checkver": {
"github": "https://github.com/tristanisham/zvm"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/tristanisham/zvm/releases/download/v$version/zvm-windows-amd64.zip",
"extract_dir": "zvm-windows-amd64"
},
"arm64": {
"url": "https://github.com/tristanisham/zvm/releases/download/v$version/zvm-windows-arm64.zip",
"extract_dir": "zvm-windows-arm64"
}
}
},
"post_install": [
"if (Test-Path ~\\.zvm) {",
" if ($null -eq (Get-Item ~\\.zvm).LinkType) {",
" Rename-Item -Path ~\\.zvm -NewName ~\\.zvm.old -Force",
" } else {",
" Remove-Item -Path ~\\.zvm -Force",
" }",
"}",
"New-Item -Path ~/.zvm -Target \"$dir\\data\" -ItemType Junction | Out-Null"
],
"uninstaller": {
"script": [
"if ((Test-Path ~\\.zvm) -and ($null -ne (Get-Item ~\\.zvm).LinkType)) {",
" Remove-Item -Path ~\\.zvm -Force",
"}",
"if (Test-Path ~\\.zvm.old) {",
" Rename-Item -Path ~\\.zvm.old -NewName .zvm -Force",
"}"
]
},
"persist": "data",
"env_add_path": "data\\bin"
}