From b39a7be7a81aa1293445ed5208f5ce7d58c85a89 Mon Sep 17 00:00:00 2001 From: Baptiste Augrain Date: Sat, 1 Jun 2024 21:29:11 +0200 Subject: [PATCH] fix(macos): add quote to sign [skip ci] --- patches/fix-darwin-sign.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/fix-darwin-sign.patch diff --git a/patches/fix-darwin-sign.patch b/patches/fix-darwin-sign.patch new file mode 100644 index 0000000..aac626a --- /dev/null +++ b/patches/fix-darwin-sign.patch @@ -0,0 +1,24 @@ +diff --git a/build/darwin/sign.ts b/build/darwin/sign.ts +index 01e9ebf..5f24ad0 100644 +--- a/build/darwin/sign.ts ++++ b/build/darwin/sign.ts +@@ -43,3 +43,3 @@ async function main(buildDir?: string): Promise { + const defaultOpts: codesign.SignOptions = { +- app: path.join(appRoot, appName), ++ app: `"${path.join(appRoot, appName)}"`, + platform: 'darwin', +@@ -68,3 +68,3 @@ async function main(buildDir?: string): Promise { + ...defaultOpts, +- app: path.join(appFrameworkPath, gpuHelperAppName), ++ app: `"${path.join(appFrameworkPath, gpuHelperAppName)}"`, + entitlements: path.join(baseDir, 'azure-pipelines', 'darwin', 'helper-gpu-entitlements.plist'), +@@ -75,3 +75,3 @@ async function main(buildDir?: string): Promise { + ...defaultOpts, +- app: path.join(appFrameworkPath, rendererHelperAppName), ++ app: `"${path.join(appFrameworkPath, rendererHelperAppName)}"`, + entitlements: path.join(baseDir, 'azure-pipelines', 'darwin', 'helper-renderer-entitlements.plist'), +@@ -82,3 +82,3 @@ async function main(buildDir?: string): Promise { + ...defaultOpts, +- app: path.join(appFrameworkPath, pluginHelperAppName), ++ app: `"${path.join(appFrameworkPath, pluginHelperAppName)}"`, + entitlements: path.join(baseDir, 'azure-pipelines', 'darwin', 'helper-plugin-entitlements.plist'),