Skip to content

Commit 83cc802

Browse files
committed
vscodium-32: Add version 1.83.1.23285
1 parent 45a1f13 commit 83cc802

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

bucket/vscodium-32.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"version": "1.83.1.23285",
3+
"description": "A community-driven, freely-licensed binary distribution of Microsoft’s editor VS Code.",
4+
"homepage": "https://vscodium.com/",
5+
"license": "MIT",
6+
"notes": [
7+
"Add VSCodium as a context menu option by running 'reg import \"$dir\\install-context.reg\"'",
8+
"For file associations, run 'reg import \"$dir\\install-associations.reg\"'"
9+
],
10+
"architecture": {
11+
"32bit": {
12+
"url": "https://github.com/VSCodium/vscodium/releases/download/1.83.1.23285/VSCodium-win32-ia32-1.83.1.23285.zip",
13+
"hash": "124633de279acbb18b0dbb826feab124b239ba774e2ea003ab1ddd41dfbebb9d"
14+
}
15+
},
16+
"pre_install": [
17+
"$product_path = \"$dir\\resources\\app\\product.json\"",
18+
"if (Test-Path -Path $product_path) {",
19+
" $product = Get-Content -Path $product_path -Raw -Encoding UTF8 | ConvertFrom-Json",
20+
" if (![string]::IsNullOrEmpty($product.updateUrl)) {",
21+
" Get-Content -Path $product_path | Where-Object {$_ -notmatch \"updateurl\"} | Set-Content temp.json",
22+
" Move-Item -Path temp.json -Destination $product_path -Force",
23+
" }",
24+
"}"
25+
],
26+
"post_install": [
27+
"$dirpath = \"$dir\".Replace('\\', '\\\\')",
28+
"$exepath = \"$dir\\VSCodium.exe\".Replace('\\', '\\\\')",
29+
"'install-associations', 'uninstall-associations', 'install-context', 'uninstall-context' | ForEach-Object {",
30+
" if (Test-Path \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\") {",
31+
" $content = Get-Content \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\"",
32+
" $content = $content.Replace('$codedir', $dirpath)",
33+
" $content = $content.Replace('$code', $exepath)",
34+
" $content = $content.Replace('&Code', '&VSCodium')",
35+
" if ($global) {",
36+
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
37+
" }",
38+
" $content | Set-Content -Path \"$dir\\$_.reg\"",
39+
" }",
40+
"}",
41+
"if (!(Test-Path \"$dir\\data\\extensions\") -and (Test-Path \"$env:USERPROFILE\\.vscode-oss\\extensions\")) {",
42+
" info '[Portable Mode] Copying extensions...'",
43+
" Copy-Item \"$env:USERPROFILE\\.vscode-oss\\extensions\" \"$dir\\data\" -Recurse",
44+
"}",
45+
"if (!(Test-Path \"$dir\\data\\user-data\") -and (Test-Path \"$env:AppData\\VSCodium\")) {",
46+
" info '[Portable Mode] Copying user data...'",
47+
" Copy-Item \"$env:AppData\\VSCodium\" \"$dir\\data\\user-data\" -Recurse",
48+
"}",
49+
"$extensions_file = \"$dir\\data\\extensions\\extensions.json\"",
50+
"if ((Test-Path \"$extensions_file\")) {",
51+
" info 'Adjusting path in extensions file...'",
52+
" (Get-Content \"$extensions_file\") -replace '(?<=vscodium(/|\\\\\\\\)).*?(?=(/|\\\\\\\\)data(/|\\\\\\\\)extensions)', $version | Set-Content \"$extensions_file\"",
53+
"}"
54+
],
55+
"env_add_path": "bin",
56+
"bin": [
57+
[
58+
"bin/codium.cmd",
59+
"vscodium"
60+
]
61+
],
62+
"shortcuts": [
63+
[
64+
"VSCodium.exe",
65+
"VSCodium"
66+
]
67+
],
68+
"persist": "data"
69+
}

0 commit comments

Comments
 (0)