generated from ScoopInstaller/BucketTemplate
/
vfox.json
74 lines (74 loc) · 3.04 KB
/
vfox.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"version": "0.4.2",
"description": "A cross-platform and extendable version manager with support for Java, Node.js, Flutter, .Net & more",
"homepage": "https://vfox.lhan.me/",
"license": "Apache-2.0",
"notes": [
"Important: You also need to add an activation script in your shell profile to make version fox to work!",
"Add this to $PROFILE: Invoke-Expression \"$(vfox activate pwsh)\""
],
"architecture": {
"64bit": {
"url": "https://github.com/version-fox/vfox/releases/download/v0.4.2/vfox_0.4.2_windows_x86_64.zip",
"hash": "bd2b1efa1a2aa2e4146eab632d9b89db17193c601d1eb9fdc420881259da4fa3",
"extract_dir": "vfox_0.4.2_windows_x86_64"
},
"32bit": {
"url": "https://github.com/version-fox/vfox/releases/download/v0.4.2/vfox_0.4.2_windows_i386.zip",
"hash": "d992627a27c58f8dc122c1c42502bb660c2cb1b6f9bc5d372ad088fea5357fe7",
"extract_dir": "vfox_0.4.2_windows_i386"
},
"arm64": {
"url": "https://github.com/version-fox/vfox/releases/download/v0.4.2/vfox_0.4.2_windows_aarch64.zip",
"hash": "b68e89eaa6c3d2e491b69d57b8ef2fd987c012576e3b823e76e544f7c7eb7bd1",
"extract_dir": "vfox_0.4.2_windows_aarch64"
}
},
"installer": {
"script": [
"$source = \"$persist_dir\\.version-fox\"",
"$target = \"$env:USERPROFILE\\.version-fox\"",
"if (!(Test-Path $source)) {",
" ni -ItemType Directory -Path $source -Force | Out-Null",
"}",
"if (Test-Path $target) {",
" gci $target | mi -Destination $source",
" ri $target",
"}",
"ni -ItemType Junction -Path $target -Target $source -Force | Out-Null"
]
},
"uninstaller": {
"script": [
"$target = \"$env:USERPROFILE\\.version-fox\"",
"if (Test-Path $target) {",
" ri $target -Force -Recurse",
"}"
]
},
"bin": "vfox.exe",
"persist": ".version-fox",
"checkver": {
"github": "https://github.com/version-fox/vfox"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/version-fox/vfox/releases/download/v$version/vfox_$version_windows_x86_64.zip",
"extract_dir": "vfox_$version_windows_x86_64"
},
"32bit": {
"url": "https://github.com/version-fox/vfox/releases/download/v$version/vfox_$version_windows_i386.zip",
"extract_dir": "vfox_$version_windows_i386"
},
"arm64": {
"url": "https://github.com/version-fox/vfox/releases/download/v$version/vfox_$version_windows_aarch64.zip",
"extract_dir": "vfox_$version_windows_aarch64"
}
},
"hash": {
"url": "https://github.com/version-fox/vfox/releases/download/v$version/checksums.txt",
"find": "$sha256[\\S\\s]{2}$basename"
}
}
}