-
-
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
afterSign hook is triggered before code signing happens #3504
Comments
Still the case in 20.41.0 |
It's probably because the call here:
links to a function that resolves immediately: electron-builder/packages/app-builder-lib/src/platformPackager.ts Lines 332 to 334 in ceafebb
whereas the signing function for mac seems to be called just 'sign', and not 'signApp':
What happens is that in the following code, it checks for non-MAS, or target of more than one. If you're building just a DMG, then MAS will be false but it will also be creating a ZIP, setting the target count to two. electron-builder/packages/app-builder-lib/src/macPackager.ts Lines 86 to 91 in 0972695
In this function, the entire doPack function is called first (that function includes the It seems to me the macPackager file needs to be updated: the sign function needs to be renamed to signApp so it's correctly called in the doPack function, and edit: no, macPackager needs a signApp call just like winPackager has (and the then() should be removed, if signing already happens in the doPack step) |
This ticket can be closed, now that #3912 is merged 🎉 |
Config option looks like:
Console output looks like this.
The text was updated successfully, but these errors were encountered: