Skip to content

Notarization on macOS broken since v24.9.0 #7883

@nook24

Description

@nook24
  • Electron-Builder Version: v24.9.0
  • Node Version: v21.2.0
  • Electron Version: 27.0.3
  • Electron Type (current, beta, nightly): current
  • Target: macOS Monterey (and newer)

Since today, the notarization of my macOS app fails with the error message: APPLE_ID env var needs to be set
https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/src/macPackager.ts#L505

I did not changed anything in my code and it works as exacted with electron-builder version v24.8.1.

My afterSign.js looks like so:

        try {
            await electron_notarize.notarize({
                appBundleId: appId,
                appPath: appPath,
                appleId: process.env.APPLE_ID_USR,
                appleIdPassword: process.env.APPLE_ID_PSW,
                teamId: process.env.APPLE_TEAM_ID_USR
            })
        } catch (error) {
            console.error(error)
        }

I don't think that the issue is related to https://github.com/electron/notarize v2.2.0 as the notarization works with electron-builder v24.8.1 and notarize 2.2.0 but not with electron-builder v24.9.0 and notarize 2.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions