-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
afterPack Usage in Build Config #2255
Comments
Thanks for donation, fixed in 19.43.4 |
@develar Thanks! However, now code signing fails immediately afterwards, regardless of the script executed by afterPack. I've included the content of the file called by afterPack as well as the debug build log where the error occurred: update-signatures.js:
Output:
|
Function must be exported: exports.default = async function(context) {
console.log("\n- [INFO] Testing afterPack functionality\n");
} |
Ah, of course. Thank you @develar! |
We have docs and example code for |
As a second user in the universe attempting to do this, I am seeing a similar issue on 19.55.3 while attempting a
and, after the considerable wait in the initial packing (the custom after-pack and installer.nsh steps are to separate out and re-insert resources too large to fit in a typical installer exe), I get
afterPack.js is formatted as recommended earlier in the thread:
I have tried with both -g and locally installed electron-builder. This project is a refresh of a setup that originated pre-yarn, so it's all fairly vanilla npm (5.5.1) Is this a regression, or am I doing something wrong here? |
We need to call a script that generates and saves binary signatures for several Electron files after packing but before it gets packaged into an distributable installer.
Is the
afterPack
option only available when using the programmatic API, or can it be called from a build configuration specified in a package.json file? The description for that option is a little unclear:By saying "path to file", it seems one could set the path to a script file; however, I received the error
configuration.afterPack should pass "typeof" keyword validation
when I specified the option in our existing build config.The text was updated successfully, but these errors were encountered: