Open Treverix opened 2 years ago
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.