chore: fix codesigning on macOS binaries

related issue: https://github.com/electron-userland/electron-builder/issues/8103

Signed-off-by: Florent Benoit <fbenoit@redhat.com>
This commit is contained in:
Florent Benoit 2024-08-14 14:46:20 +02:00 committed by Florent BENOIT
parent 071967fbe4
commit b03e80b68e

View file

@ -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.');