Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 69 additions & 0 deletions bucket/vscodium-32.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"version": "1.83.1.23285",
"description": "A community-driven, freely-licensed binary distribution of Microsoft’s editor VS Code.",
"homepage": "https://vscodium.com/",
"license": "MIT",
"notes": [
"Add VSCodium as a context menu option by running 'reg import \"$dir\\install-context.reg\"'",
"For file associations, run 'reg import \"$dir\\install-associations.reg\"'"
],
"architecture": {
"32bit": {
"url": "https://github.com/VSCodium/vscodium/releases/download/1.83.1.23285/VSCodium-win32-ia32-1.83.1.23285.zip",
"hash": "124633de279acbb18b0dbb826feab124b239ba774e2ea003ab1ddd41dfbebb9d"
}
},
"pre_install": [
"$product_path = \"$dir\\resources\\app\\product.json\"",
"if (Test-Path -Path $product_path) {",
" $product = Get-Content -Path $product_path -Raw -Encoding UTF8 | ConvertFrom-Json",
" if (![string]::IsNullOrEmpty($product.updateUrl)) {",
" Get-Content -Path $product_path | Where-Object {$_ -notmatch \"updateurl\"} | Set-Content temp.json",
" Move-Item -Path temp.json -Destination $product_path -Force",
" }",
"}"
],
"post_install": [
"$dirpath = \"$dir\".Replace('\\', '\\\\')",
"$exepath = \"$dir\\VSCodium.exe\".Replace('\\', '\\\\')",
"'install-associations', 'uninstall-associations', 'install-context', 'uninstall-context' | ForEach-Object {",
" if (Test-Path \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\") {",
" $content = Get-Content \"$bucketsdir\\extras\\scripts\\vscode\\$_.reg\"",
" $content = $content.Replace('$codedir', $dirpath)",
" $content = $content.Replace('$code', $exepath)",
" $content = $content.Replace('&Code', '&VSCodium')",
" if ($global) {",
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
" }",
" $content | Set-Content -Path \"$dir\\$_.reg\"",
" }",
"}",
"if (!(Test-Path \"$dir\\data\\extensions\") -and (Test-Path \"$env:USERPROFILE\\.vscode-oss\\extensions\")) {",
" info '[Portable Mode] Copying extensions...'",
" Copy-Item \"$env:USERPROFILE\\.vscode-oss\\extensions\" \"$dir\\data\" -Recurse",
"}",
"if (!(Test-Path \"$dir\\data\\user-data\") -and (Test-Path \"$env:AppData\\VSCodium\")) {",
" info '[Portable Mode] Copying user data...'",
" Copy-Item \"$env:AppData\\VSCodium\" \"$dir\\data\\user-data\" -Recurse",
"}",
"$extensions_file = \"$dir\\data\\extensions\\extensions.json\"",
"if ((Test-Path \"$extensions_file\")) {",
" info 'Adjusting path in extensions file...'",
" (Get-Content \"$extensions_file\") -replace '(?<=vscodium(/|\\\\\\\\)).*?(?=(/|\\\\\\\\)data(/|\\\\\\\\)extensions)', $version | Set-Content \"$extensions_file\"",
"}"
],
"env_add_path": "bin",
"bin": [
[
"bin/codium.cmd",
"vscodium"
]
],
"shortcuts": [
[
"VSCodium.exe",
"VSCodium"
]
],
"persist": "data"
}