From e114e120f3c1b1feb08793fb31d85744d89faf19 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Mon, 4 Aug 2025 15:25:05 +0200 Subject: [PATCH] fix(windows): regroup patches [skip ci] --- patches/windows/{setup.patch => appx.patch} | 4 ++-- patches/windows/contextmenu.patch | 12 ------------ 2 files changed, 2 insertions(+), 14 deletions(-) rename patches/windows/{setup.patch => appx.patch} (92%) delete mode 100644 patches/windows/contextmenu.patch diff --git a/patches/windows/setup.patch b/patches/windows/appx.patch similarity index 92% rename from patches/windows/setup.patch rename to patches/windows/appx.patch index bd4934f..4f8d604 100644 --- a/patches/windows/setup.patch +++ b/patches/windows/appx.patch @@ -31,9 +31,9 @@ index 25d8916..95863d2 100644 + // .pipe(replace('@@AppxPackageDescription@@', product.win32NameVersion)) + // .pipe(replace('@@ApplicationIdShort@@', product.win32RegValueName)) + // .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`))); + // } } else if (platform === 'linux') { diff --git a/patches/windows/contextmenu.patch b/patches/windows/contextmenu.patch deleted file mode 100644 index 82b512e..0000000 --- a/patches/windows/contextmenu.patch +++ /dev/null @@ -1,12 +0,0 @@ -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`)));