refactor: patches (#2797)

This commit is contained in:
Baptiste Augrain
2026-04-22 16:05:34 +02:00
committed by GitHub
parent 148fdb4629
commit 7ff99c23b5
64 changed files with 107 additions and 55 deletions

View File

@@ -1,30 +0,0 @@
diff --git a/build/darwin/sign.js b/build/darwin/sign.js
index dff30fd..df48bee 100644
--- a/build/darwin/sign.js
+++ b/build/darwin/sign.js
@@ -56,5 +56,7 @@ async function main(buildDir) {
ignore: (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';
}
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';
}
+
};