fix(index): remove breaking thenify #572
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Having spent the last couple of hours trying to get a windows builds working in a github action (using wine on a debian machine, node 16), I've been stuck with it failing at some point inside the nw-builder code base.
I've methodically worked my way to finding that the thenify package wrapped around rcedit was causing the function to never resolve here: https://github.com/nwutils/nw-builder/blob/master/lib/index.cjs#L857
A console inside this then showed it was not running, and with a catch I could see there were no errors.
If I however remove the thenify (which shouldn't be necessary, the function is already a promise! https://github.com/electron/node-rcedit/blob/v3.0.1/lib/rcedit.js#L8), the promise resolves correctly.