question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 asaroption in build, but it doesn’t work. according to asardoc 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:closed
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jul 1, 2016

is this normal or I’m doing something wrong

Yes, it is normal. It just listed in the asar archive, but content is not copied (referenced instead).

0reactions
espositotcommented, Nov 29, 2017

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found