Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'tool: "notarytool"' won't work #7677

Closed
sprout2000 opened this issue Jul 20, 2023 · 3 comments
Closed

'tool: "notarytool"' won't work #7677

sprout2000 opened this issue Jul 20, 2023 · 3 comments

Comments

@sprout2000
Copy link

  • Electron-Builder Version: 24.6.1
  • @electron/notarize Version: 2.1.0
  • @electron/osx-sign Version: 1.0.4
  • Node Version: 18.16.1
  • Electron Version: 25.3.1
  • Electron Type (current, beta, nightly): current
  • Target: macOS

Legacy altool mode is used even if 'tool: "notarytool"' is specified in the notarize script.

const notarizer = async (context: AfterPackContext) => {
  const { appOutDir } = context;
  const appName = context.packager.appInfo.productFilename;

  return await notarize({
    tool: "notarytool",
    appPath: `${appOutDir}/${appName}.app`,
    teamId: `${process.env.TEAM_ID}`,
    appleId: `${process.env.APPLE_ID}`,
    appleIdPassword: `${process.env.APPLE_APP_SPECIFIC_PASSWORD}`,
  });
};

Output to the console is as follows:

Notarizing using the legacy altool system. The altool system will be disabled on November 1 2023. Please switch to the notarytool system before then.
You can do this by setting "tool: notarytool" in your "@electron/notarize" options. Please note that the credentials options may be slightly different between tools.
@mmaietta
Copy link
Collaborator

mmaietta commented Jul 20, 2023

Yeahhh, that's not related to electron-builder. You're using the @electron/notarize package directly via our AfterPack hook. Note: you may want to use the AfterSign hook

@duereg
Copy link

duereg commented Sep 19, 2023

#7683 (comment)

@XanderEmu
Copy link

XanderEmu commented Oct 27, 2023

My not-perfect-but-working solution was to explicitely disable notarization in builder configuration, then setting up a separate notarization script in afterSign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants