-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Notarize failed with 24.13.3 after upgrade from 24.12.0 with app specific password #8103
Comments
This reverts commit d2b1313. See: electron-userland/electron-builder#8103
I switched to api keys to get things working with latest builder version. |
I also had to downgrade to get things rolling again. It seems that in The error I was getting: It seems like this "other" |
I hit the same issue that reported here. Newer electron-builder has a built-in I removed the
|
If you have the following env variables, it will try to notarize automatically
|
How so? I am still using this approach and it works fine. Just ensure to set Here is my const path = require('path');
require('dotenv').config();
require('dotenv').config({ path: path.resolve(__dirname, '..', '..', '.credentials') });
const { spawnSync } = require('child_process');
const { notarize } = require('@electron/notarize');
async function notarizeMacos(context) {
const { appOutDir } = context;
const {
APPLE_ID,
APPLE_APP_SPECIFIC_PASSWORD,
APPLE_TEAM_ID,
} = process.env;
if (!(APPLE_ID && APPLE_APP_SPECIFIC_PASSWORD && APPLE_TEAM_ID)) {
console.log('Skipping notarizing step. APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD, and APPLE_TEAM_ID env variables must be set');
return;
}
if (process.env.SKIP_NOTARIZE !== undefined) {
console.warn('Skipping notarizing step. SKIP_NOTARIZE env variable is set.');
return;
}
const appName = context.packager.appInfo.productFilename;
console.log('Notarizing macOS app...');
await notarize({
// appBundleId: build.appId,
appPath: `${appOutDir}/${appName}.app`,
appleId: APPLE_ID,
appleIdPassword: APPLE_APP_SPECIFIC_PASSWORD,
teamId: APPLE_TEAM_ID,
});
}
exports.default = async function notarizeOrSign(context) {
const { electronPlatformName } = context;
if (electronPlatformName === 'darwin') {
await notarizeMacos(context);
} else {
console.log(`No notarization or signing for platform ${electronPlatformName}`);
}
}; |
It works! Thank you! |
This is not working for me
"electron-builder": "^24.13.3" I don't have an afterSign script. |
It works! Thanks! |
I added it in my also set the envs Note: If you have an older afterSign script, you will probably want to turn that off as electron-builder will now try to automatically notarize the app for you |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
related issue: electron-userland/electron-builder#8103 Signed-off-by: Florent Benoit <[email protected]>
related issue: electron-userland/electron-builder#8103 Signed-off-by: Florent Benoit <[email protected]>
related issue: electron-userland/electron-builder#8103 Signed-off-by: Florent Benoit <[email protected]>
related issue: electron-userland/electron-builder#8103 Signed-off-by: Florent Benoit <[email protected]>
This issue was closed because it has been stalled for 30 days with no activity. |
I upgraded electron builder from 24.12.0 to 24.13.3 and notarizing failed with
I am using APPLE_ID and APPLE_APP_SPECIFIC_PASSWORD approach for authorization.
Since i did not find out what changed, i tried to force new notarytool.
I checked the code how notarize options are build. And it should be possible to set
even when using apple id and app specific password for authorization. the new notarytool should be used following the source code in https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/src/macPackager.ts#L566. But when setting the team id i get this:
So what did i miss in the version update that notarizing is not working anymore?
Thank you!
EDIT: Downgraded to 24.12.0 again and removed the notarize key from the builder config. and it is working again.
The text was updated successfully, but these errors were encountered: