Skip to content

Commit

Permalink
chore: fix codesigning on macOS binaries
Browse files Browse the repository at this point in the history
related issue: electron-userland/electron-builder#8103

Signed-off-by: Florent Benoit <[email protected]>
  • Loading branch information
benoitf committed Aug 14, 2024
1 parent 84b6a7c commit 1337b43
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .electron-builder.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.');
Expand Down

0 comments on commit 1337b43

Please sign in to comment.