-
-
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
Custom async sign function causes build to fail #2613
Comments
Replace async sign function with regular function to fix problem with electron builder (see electron-userland/electron-builder#2613)
Update: Looks like the YAML library only has problems with async functions. Changing the sign function to a regular function returning a promise solves the problem. Not sure how easy it would be to support async functions in the config. I'm ok without it if it's too much work. In that case, feel free to close this. |
I hope I will fix it today. Thanks for clear report. |
Created unit tests and am able to repro on yaml3 and yaml4 Will continue working on this. Thanks for the great pointer on async vs Promise [UPDATE]
|
…r implementation of other config callbacks, such as `afterSign` (electron-userland#2613)
I'm using a custom singing function for windows. Since updating to the latest version of electron-builder, the build fails with the following exception:
My config looks like this (passed as javascript object directly to
builder.build
:It's obvious that the builder is trying to create a yaml dump of the config object without removing any problematic objects. In this case, it's the function that could't get processed.
The text was updated successfully, but these errors were encountered: