From 1337b43ecfa3dd75185a9ac7baf41053e1a06e54 Mon Sep 17 00:00:00 2001 From: Florent Benoit Date: Wed, 14 Aug 2024 14:46:20 +0200 Subject: [PATCH] chore: fix codesigning on macOS binaries related issue: https://github.com/electron-userland/electron-builder/issues/8103 Signed-off-by: Florent Benoit --- .electron-builder.config.cjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.electron-builder.config.cjs b/.electron-builder.config.cjs index e1394efb13deb..6fb407e04fa88 100644 --- a/.electron-builder.config.cjs +++ b/.electron-builder.config.cjs @@ -175,7 +175,6 @@ const config = { icon: './buildResources/icon-512x512.png', target: ['flatpak', 'tar.gz'], }, - afterSign: 'electron-builder-notarize', mac: { artifactName: `podman-desktop${artifactNameSuffix}-\${version}-\${arch}.\${ext}`, hardenedRuntime: true, @@ -222,6 +221,12 @@ if (process.env.AIRGAP_DOWNLOAD) { }; } +if (process.env.APPLE_TEAM_ID) { + config.mac.notarize = { + teamId: process.env.APPLE_TEAM_ID, + } +} + const azureCodeSign = filePath => { if (!process.env.AZURE_KEY_VAULT_URL) { console.log('Skipping code signing, no environment variables set for that.');