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.
All npm C++ native modules generate a file ending in .node, which is an executable file. Currently, it is default practice to place these inside app.asar, which seems problematic for several reasons:
.node files are executables that need to be signed. If packed directly into app.asar, they cannot be signed.
According to official documentation, placing .node files inside app.asar can lead to performance issues and file not found errors.
https://www.electronjs.org/docs/latest/tutorial/asar-archives
Looking at applications like VSCode and Slack, they currently default to placing .node files in app.asar.unpack.
Therefore, I suggest that during the smart unpack process, we automatically detect files ending in .node and place them in the unpack directory.