Unpack multiple directories with asar build option
See original GitHub issue- Version: 5.10.2
- Target: Win32
Hey, I’m trying to unpack multiple directories with asar
option in build
, but it doesn’t work. according to asar
doc it should look like this$ asar pack app app.asar --unpack-dir "{x1,x2}"
but when I try it in mypackage.json
it unpacks nothing, is it possible?
"asar": {
"unpackDir": "{assets, node_modules}"
},
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Options | electron-packager
unpackDir (string): Unpacks the dir to the app.asar.unpacked directory whose names exactly or pattern match this string. The asar.unpackDir is relative to dir....
Read more >Application Packaging | Electron
An asar archive is a simple tar-like format that concatenates files into a single file. Electron can read arbitrary files from it without...
Read more >Application Packaging · Electron docs gitbook - imfly
An asar archive is a simple tar-like format that concatenates files into a single file. Electron can read arbitrary files from it without...
Read more >My electron app size is 530mb . So, i unzip the asar file that i ...
It finds and removes unnecessary files and folders from your node_modules directory based on predefined and custom glob patterns. Also gave a ...
Read more >ASAR Archives - Electron
In Electron there are two sets of APIs: Node APIs provided by Node.js and Web APIs ... readFile and require treat ASAR archives...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, it is normal. It just listed in the asar archive, but content is not copied (referenced instead).
Can I unpack using
asar
but to a different folder? Unpacking seems to default to resources\app and that is not what I desire. If not capable, how can I get folders and files moved to a different folder?