forked from Ash258/Shovel-Ash258
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvscode-insiders.json
92 lines (92 loc) · 4.06 KB
/
vscode-insiders.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
89
90
91
92
{
"$schema": "https://raw.githubusercontent.com/Ash258/Scoop-Core/featArmBasicSupport/schema.json",
"version": "nightly",
"description": "Microsoft Visual Studio Code - Insiders. New type of tool that combines the simplicity of a code editor with what developers need for core edit-build-debug cycle.",
"homepage": "https://code.visualstudio.com/insiders/",
"license": {
"identifier": "Freeware",
"url": "https://code.visualstudio.com/license/insiders"
},
"notes": [
"When there is vscode update available run 'scoop update vscode-insiders -kf'",
"When installed from elevated prompt, context menus will be created.",
" Otherwise, you could create it on your own using install-context.reg file in '$dir' folder"
],
"architecture": {
"64bit": {
"url": [
"https://update.code.visualstudio.com/latest/win32-x64-archive/insider#/cosi.zip",
"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"
]
},
"32bit": {
"url": [
"https://update.code.visualstudio.com/latest/win32-archive/insider#/cosi.zip",
"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"
]
},
"arm64": {
"url": [
"https://update.code.visualstudio.com/latest/win32-arm64-archive/insider#/cosi.zip",
"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"
]
}
},
"installer": {
"script": [
"$PORT = \"$dir\\data\"",
"$REG_INSTALL = \"$dir\\vscode-install-context.reg\"",
"$REG_UNINSTALL = \"$dir\\vscode-uninstall-context.reg\"",
"$CODEPATH = \"$dir\\Code - Insiders.exe\".Replace('\\', '\\\\')",
" # Create data folder",
"if (-not (Test-Path \"$persist_dir\\data\")) { ",
" Write-Host 'No user data folder exists' -f Yellow",
" @('tmp', 'user-data', 'extensions') | ForEach-Object { New-Item \"$PORT\\$_\" -Force -Type Directory | Out-Null }",
"}",
" # Create install context file",
"$content = Get-Content $REG_INSTALL",
"$content = $content -replace '\\$code', $CODEPATH",
"$content = $content -replace '&Code', 'Code &Insiders'",
"Set-Content $REG_INSTALL $content -Encoding Ascii",
" # Create uninstall context file",
"$content = Get-Content $REG_UNINSTALL",
"$content = $content -replace '&Code', 'Code &Insiders'",
"Set-Content $REG_UNINSTALL $content -Encoding Ascii",
" # Apply context automatically",
"if (is_admin) {",
" regedit /s $REG_INSTALL",
"}"
]
},
"post_install": [
" # Reflect storage change to support correct last opened editor.",
"$file = \"$dir\\data\\user-data\\storage.json\"",
"if (Test-Path $file) {",
" $cont = (Get-Content $file) -replace 'nightly-\\d+', 'current'",
" Set-Content $file $cont -Encoding Ascii",
"}"
],
"uninstaller": {
"script": [
" # Uninstall context menu",
"if (is_admin) { regedit /s \"$dir\\vscode-uninstall-context.reg\" }"
]
},
"bin": [
"bin\\code-insiders.cmd",
[
"bin\\code-insiders.cmd",
"codei"
]
],
"shortcuts": [
[
"Code - Insiders.exe",
"Visual Studio Code - Insiders"
]
],
"persist": "data"
}