From 83cc80221eac077f8e18cfe7f59f6f287a75e8d5 Mon Sep 17 00:00:00 2001 From: ccyykkcyk <91893497+ccyykkcyk@users.noreply.github.com> Date: Sat, 18 Nov 2023 09:18:40 +0800 Subject: [PATCH] vscodium-32: Add version 1.83.1.23285 --- bucket/vscodium-32.json | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 bucket/vscodium-32.json diff --git a/bucket/vscodium-32.json b/bucket/vscodium-32.json new file mode 100644 index 00000000000..944b024b744 --- /dev/null +++ b/bucket/vscodium-32.json @@ -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" +}