mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-22 02:50:14 +10:00
feat(1.103): update patches (#2437)
This commit is contained in:
12
patches/windows/contextmenu.patch
Normal file
12
patches/windows/contextmenu.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
||||
index 25d8916..11336b7 100644
|
||||
--- a/build/gulpfile.vscode.js
|
||||
+++ b/build/gulpfile.vscode.js
|
||||
@@ -417,5 +417,5 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
||||
.pipe(replace('@@ApplicationExe@@', product.nameShort + '.exe'))
|
||||
- .pipe(replace('@@FileExplorerContextMenuID@@', quality === 'stable' ? 'OpenWithCode' : 'OpenWithCodeInsiders'))
|
||||
+ .pipe(replace('@@FileExplorerContextMenuID@@', `OpenWith${product.win32RegValueName}`))
|
||||
.pipe(replace('@@FileExplorerContextMenuCLSID@@', product.win32ContextMenu[arch].clsid))
|
||||
- .pipe(replace('@@FileExplorerContextMenuDLL@@', `${quality === 'stable' ? 'code' : 'code_insider'}_explorer_command_${arch}.dll`))
|
||||
+ .pipe(replace('@@FileExplorerContextMenuDLL@@', `${product.applicationName.replace(/-/g, '_')}_explorer_command_${arch}.dll`))
|
||||
.pipe(rename(f => f.dirname = `appx/manifest`)));
|
||||
9
patches/windows/setup.patch
Normal file
9
patches/windows/setup.patch
Normal file
@@ -0,0 +1,9 @@
|
||||
diff --git a/build/gulpfile.vscode.win32.js b/build/gulpfile.vscode.win32.js
|
||||
index 643bf54..d7950a0 100644
|
||||
--- a/build/gulpfile.vscode.win32.js
|
||||
+++ b/build/gulpfile.vscode.win32.js
|
||||
@@ -115,3 +115,3 @@ function buildWin32Setup(arch, target) {
|
||||
if (quality !== 'exploration') {
|
||||
- definitions['AppxPackage'] = `${quality === 'stable' ? 'code' : 'code_insider'}_${arch}.appx`;
|
||||
+ definitions['AppxPackage'] = `${product.applicationName.replace(/-/g, '_')}_${arch}.appx`;
|
||||
definitions['AppxPackageName'] = `${product.win32AppUserModelId}`;
|
||||
Reference in New Issue
Block a user