-
Notifications
You must be signed in to change notification settings - Fork 33
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 fail #193
Comments
It is also possible to pass an absolute path to codesign |
Since this was blocking me I ended up replacing "build": {
"mac": {
"notarize": false
},
"afterSign": "electron/notarize.js"
} as normal. This is the same as if you are writing your own custom import { execSync } from "node:child_process";
async function notarizing(context) {
const { electronPlatformName, appOutDir } = context;
if (electronPlatformName !== "darwin") {
return;
}
if (!process.env.APPLEIDPASS) {
return;
}
const appName = context.packager.appInfo.productFilename;
const appPath = `${appOutDir}/${appName}.app`;
const zipPath = `${appOutDir}/${appName}.zip`;
const appleId = process.env.APPLE_ID;
const appleIdPassword = process.env.APPLEIDPASS;
const teamId = process.env.APPLE_TEAM_ID;
console.log(
execSync(`ditto -c -k --keepParent "${appPath}" "${zipPath}"`, {
encoding: "utf8",
}),
);
console.log(
execSync(
`xcrun notarytool submit "${zipPath}" --team-id "${teamId}" --apple-id "${appleId}" --password "${appleIdPassword}" --wait`,
{ encoding: "utf8" },
),
);
console.log(
execSync(`xcrun stapler staple "${appPath}"`, { encoding: "utf8" }),
);
}
export default notarizing; Use as your own risk and make sure to check what environment variables you are using for CI/etc. This is working in my github actions and now my app is being packaged and notarizing again. Clearly the current logic used to run |
^Error: Failed to display codesign info on your application with code: 1
xxxxx.app: host has no guest with the requested attributes
Failed to codesign your application with code: 1
xxxxx.app: host has no guest with the requested attributes
xxxxx.app: host has no guest with the requested attributes
output
Common Name : Developer ID Certification Authority
Common Name : Developer ID Certification Authority
Common Name : Developer ID Application: UserName (TeamId)
The text was updated successfully, but these errors were encountered: