Browse Source

fix(sign): update function call [skip ci]

Baptiste Augrain 4 months ago
parent
commit
79dfaf1991
1 changed files with 21 additions and 19 deletions
  1. 21 19
      patches/osx/fix-codesign.patch

+ 21 - 19
patches/osx/fix-codesign.patch

@@ -1,28 +1,30 @@
 diff --git a/build/darwin/sign.js b/build/darwin/sign.js
-index f5913b7..100b950 100644
+index dff30fd..df48bee 100644
 --- a/build/darwin/sign.js
 +++ b/build/darwin/sign.js
-@@ -53,5 +53,7 @@ async function main(buildDir) {
+@@ -56,5 +56,7 @@ async function main(buildDir) {
          ignore: (filePath) => {
-+						const ext = path_1.extname(filePath);
++            const ext = path_1.default.extname(filePath);
              return filePath.includes(gpuHelperAppName) ||
                  filePath.includes(rendererHelperAppName) ||
 -                filePath.includes(pluginHelperAppName);
 +                filePath.includes(pluginHelperAppName) ||
-+								ext == '.asar' || ext == '.dat' || ext == '.gif' || ext == '.icns' || ext == '.ico' || ext == '.json' || ext == '.mp3' || ext == '.nib' || ext == '.pak' || ext == '.png' || ext == '.scpt' || ext == '.ttf' || ext == '.wasm' || ext == '.woff' || ext == '.woff2';
++                ext == '.asar' || ext == '.dat' || ext == '.gif' || ext == '.icns' || ext == '.ico' || ext == '.json' || ext == '.mp3' || ext == '.nib' || ext == '.pak' || ext == '.png' || ext == '.scpt' || ext == '.ttf' || ext == '.wasm' || ext == '.woff' || ext == '.woff2';
          }
-@@ -83,3 +85,3 @@ async function main(buildDir) {
-             '-string',
--            'An application in Visual Studio Code wants to use AppleScript.',
-+            'An application in VSCodium wants to use AppleScript.',
-             `${infoPlistPath}`
-@@ -90,3 +92,3 @@ async function main(buildDir) {
-             '-string',
--            'An application in Visual Studio Code wants to use the Microphone.',
-+            'An application in VSCodium wants to use the Microphone.',
-             `${infoPlistPath}`
-@@ -97,3 +99,3 @@ async function main(buildDir) {
-             '-string',
--            'An application in Visual Studio Code wants to use the Camera.',
-+            'An application in VSCodium wants to use the Camera.',
-             `${infoPlistPath}`
+diff --git a/build/darwin/sign.ts b/build/darwin/sign.ts
+index ecf1627..a414032 100644
+--- a/build/darwin/sign.ts
++++ b/build/darwin/sign.ts
+@@ -60,6 +60,9 @@ async function main(buildDir?: string): Promise<void> {
+ 		ignore: (filePath: string) => {
+-			return filePath.includes(gpuHelperAppName) ||
+-				filePath.includes(rendererHelperAppName) ||
+-				filePath.includes(pluginHelperAppName);
++			const ext = path.extname(filePath);
++            return filePath.includes(gpuHelperAppName) ||
++                filePath.includes(rendererHelperAppName) ||
++                filePath.includes(pluginHelperAppName) ||
++				ext == '.asar' || ext == '.dat' || ext == '.gif' || ext == '.icns' || ext == '.ico' || ext == '.json' || ext == '.mp3' || ext == '.nib' || ext == '.pak' || ext == '.png' || ext == '.scpt' || ext == '.ttf' || ext == '.wasm' || ext == '.woff' || ext == '.woff2';
+ 		}
++
+ 	};