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 #150

Closed
sprout2000 opened this issue Jul 21, 2023 · 2 comments
Closed

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

sprout2000 opened this issue Jul 21, 2023 · 2 comments

Comments

@sprout2000
Copy link

sprout2000 commented Jul 21, 2023

  • Electron-Builder Version: 24.6.2
  • @electron/notarize Version: 2.1.0
  • @electron/osx-sign Version: 1.0.4
  • macOS version: 13.4.1 (c) Ventura
  • Node Version: 18.16.1
  • Electron Version: 25.3.1

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}`,
  });
};

export default notarizer;

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.
@MarshallOfSound
Copy link
Member

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

Please provide a full sample that reproduces this (without using electron-builder). There are countless projects using notarytool just fine 😅 not sure why yours wouldn't

@sprout2000
Copy link
Author

I don't know why, but I rewrote the script in JavaScript and everything worked.
However, it does not seem to work if multiple architectures are specified in electron-builder. I don't know why this is either.
I'm very sorry for the trouble I caused you.

target: [
    {
      target: "default",
      arch: ["x64", "arm64"],
    },
],

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

2 participants