/
zvm.json
56 lines (56 loc) 路 2.06 KB
/
zvm.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"homepage": "https://github.com/tristanisham/zvm",
"version": "0.6.7",
"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.6.7/zvm-windows-amd64.zip",
"hash": "2cf0bfd23c36ae842feaf12174fe1bedd9d07cad7063f5c12c4dffe8d299f9e5",
"extract_dir": "zvm-windows-amd64"
},
"arm64": {
"url": "https://github.com/tristanisham/zvm/releases/download/v0.6.7/zvm-windows-arm64.zip",
"hash": "4a16d3086a54c9da14d644eac35afaf8d64e099aeacabce71854f3e253b6edbf",
"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"
}