You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to exclude node_modules/electron from the asar using this command, which I think, should do exactly this:
npx asar pack . app.asar --unpack-dir "node_modules/electron"
Now, when we look into the asar.app.unpacked folder, we find the files for node_modules/electron and also all files for all libraries like node_modules/electron* - for example, node_modules/electron-redux.
Then, when we do npx list app.asar, we see that node_modules/electron is still packaged (and the others also).
I expect, from the documentation, that it would just exclude that folder and not all, that simply start with the pattern, as that's what it says on the readme. And then, it actually does not exclude.
The text was updated successfully, but these errors were encountered:
Agreed, the documentation talks of "excluding" directories with --unpack-dir, but they are packed anyway and then duplicated in the unpacked directory.
I've been trying to figure out the same thing. From what I can discern, it is creating a symlink between the file in the app.asar and the app.asar.unpacked. Seems to be the case as when I delete app.asar.unpacked folder, the electron app is no longer able to be run (even though app.asar shows the "files" embedded in the asar ----> symlink?)
I try to exclude
node_modules/electron
from the asar using this command, which I think, should do exactly this:Now, when we look into the
asar.app.unpacked
folder, we find the files fornode_modules/electron
and also all files for all libraries likenode_modules/electron*
- for example,node_modules/electron-redux
.Then, when we do
npx list app.asar
, we see thatnode_modules/electron
is still packaged (and the others also).I expect, from the documentation, that it would just exclude that folder and not all, that simply start with the pattern, as that's what it says on the readme. And then, it actually does not exclude.
The text was updated successfully, but these errors were encountered: