Pārlūkot izejas kodu

fix(windows): regroup patches [skip ci]

Baptiste Augrain 1 dienu atpakaļ
vecāks
revīzija
e114e120f3
2 mainītis faili ar 2 papildinājumiem un 14 dzēšanām
  1. 2 2
      patches/windows/appx.patch
  2. 0 12
      patches/windows/contextmenu.patch

+ 2 - 2
patches/windows/setup.patch → 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') {

+ 0 - 12
patches/windows/contextmenu.patch

@@ -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`)));