/
vscode.json
88 lines (88 loc) · 3.72 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"homepage": "https://code.visualstudio.com/",
"version": "1.41.1",
"description": "Visual Studio Code is a lightweight but powerful source code editor.",
"license": {
"identifier": "Freeware",
"url": "https://code.visualstudio.com/License/"
},
"notes": "Add Visual Studio Code as a context menu option by running: \"$dir\\vscode-install-context.reg\"",
"bin": [
[
"bin\\code.cmd",
"code"
]
],
"shortcuts": [
[
"code.exe",
"Visual Studio Code"
]
],
"post_install": [
"if (Test-Path \"$dir\\vscode-install-context.reg\") {",
" $codepath = \"$dir\\Code.exe\".Replace('\\', '\\\\')",
" $content = Get-Content \"$dir\\vscode-install-context.reg\"",
" $content = $content.Replace('$code', $codepath)",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\vscode-install-context.reg\"",
"}",
"if (Test-Path \"$dir\\vscode-uninstall-context.reg\") {",
" $content = Get-Content \"$dir\\vscode-uninstall-context.reg\"",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\vscode-uninstall-context.reg\"",
"}"
],
"checkver": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jp": "$.products[?(@.platform.os == 'win32-x64-archive')].name"
},
"architecture": {
"64bit": {
"url": [
"https://vscode-update.azurewebsites.net/1.41.1/win32-x64-archive/stable#/dl.7z",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-install-context.reg",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-uninstall-context.reg"
],
"hash": [
"e807f9ac8549f80760c980635edb8e1de9104c7a9778c71ea5671af0810a4557",
"b65d66860d9ccc18bfb05237b03e06db0d6c574be3d4b946c2a5e6865c08cb28",
"df2a5162e72e2518e2b75b4337c8e7b46c136554872af90fa0de1cf6ebef376f"
]
},
"32bit": {
"url": [
"https://vscode-update.azurewebsites.net/1.41.1/win32-archive/stable#/dl.7z",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-install-context.reg",
"https://raw.githubusercontent.com/lukesampson/scoop-extras/master/scripts/vscode-uninstall-context.reg"
],
"hash": [
"7be4c4d248eac136878fbbe6fc9c428a3c25ffe95969184b4107a214d6ac1c39",
"b65d66860d9ccc18bfb05237b03e06db0d6c574be3d4b946c2a5e6865c08cb28",
"df2a5162e72e2518e2b75b4337c8e7b46c136554872af90fa0de1cf6ebef376f"
]
}
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://vscode-update.azurewebsites.net/$version/win32-x64-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jp": "$.products[?(@.platform.os == 'win32-x64-archive')].sha256hash"
}
},
"32bit": {
"url": "https://vscode-update.azurewebsites.net/$version/win32-archive/stable#/dl.7z",
"hash": {
"url": "https://code.visualstudio.com/sha?build=stable",
"jp": "$.products[?(@.platform.os == 'win32-archive')].sha256hash"
}
}
}
}
}