generated from Ash258/GenericBucket
/
vscode.json
66 lines (66 loc) · 2.76 KB
/
vscode.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
{
"version": "1.89.0",
"description": "Lightweight but powerful source code editor",
"homepage": "https://code.visualstudio.com/",
"license": {
"identifier": "Freeware",
"url": "https://code.visualstudio.com/License/"
},
"notes": "Add Visual Studio Code as a context menu option by running: \"$dir\\install-context.reg\"",
"architecture": {
"64bit": {
"url": [
"https://vscode.download.prss.microsoft.com/dbazure/download/stable/b58957e67ee1e712cebf466b995adf4c5307b2bd/VSCode-win32-x64-1.89.0.zip",
"https://raw.githubusercontent.com/ScoopInstaller/Extras/master/scripts/vscode/install-context.reg",
"https://raw.githubusercontent.com/ScoopInstaller/Extras/master/scripts/vscode/uninstall-context.reg"
],
"hash": [
"4824abcd1effd27b46c597908256f84df88d6de3493b6d06fcf9b3b2feaebe9a",
"8ef94c82319b69754bdae0099af266d184d179a37af8b8beb11334c6ab639752",
"df2a5162e72e2518e2b75b4337c8e7b46c136554872af90fa0de1cf6ebef376f"
]
}
},
"env_add_path": "bin",
"shortcuts": [
[
"code.exe",
"Visual Studio Code"
]
],
"post_install": [
"if (Test-Path \"$dir\\install-context.reg\") {",
" $codepath = \"$dir\\Code.exe\".Replace('\\', '\\\\')",
" $content = Get-Content \"$dir\\install-context.reg\"",
" $content = $content.Replace('$code', $codepath)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\install-context.reg\"",
"}",
"if (Test-Path \"$dir\\uninstall-context.reg\") {",
" $content = Get-Content \"$dir\\uninstall-context.reg\"",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\uninstall-context.reg\"",
"}"
],
"checkver": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].url",
"regex": "^https?://(?<domain>.*)/stable/(?<release>\\w+)/VSCode-win32-x64-(?<version>[\\d.]+).zip",
"replace": "${3}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://$matchDomain/stable/$matchRelease/VSCode-win32-x64-$matchVersion.zip",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jsonpath": "$.products[?(@.platform.os == 'win32-x64-archive')].sha256hash"
}
}
}
}
}