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
enhancementFeature requesthelp wantedNeeds a contributor from the communityneeds work 🚧Feature request needs to be fleshed out before maintainers can take action on itreleased
I don't see why you wouldn't want those and I think most do. We could instead have --no-asar and --no-prune flags. I much prefer us to have sane defaults, which means less config mess for users.
Reacted by Gabriel, Linus Unnebäck, Stephen Martindale, Rob Ede, Isabella Weber, Carman Babin, Andrew Landsverk, Cyriaque DELAUNAY, Lonnie Best, ɐʇɯon3ɹ and 7 more
aside: as someone who just had to leave their computer on overnight copying over a large ~/dev directory full of hundreds of thousands of files from node_modules directory trees on a faulty SSD, I kinda wish a certain software platform would move to archive-based dependencies, too :)
Only bad part of this is you'll have to re-install when you prune. Here's what I'm doing:
# make a regex of node_modules to ignore
ignores=`npm ls --dev --parseable`# get the package name
ignores=$(echo $ignores| sed -e 's@.*/@@')# skip the first line
ignores=`echo $ignores| awk '{if(NR > 1) print $0}'`# join with a pipe
ignores=${ignores//$'\n'/'|'}# build mac distibutable app
./node_modules/.bin/electron-packager ."Dev Tool" \
--platform=darwin --arch=x64 --version=0.35.6 \
--ignore=\"$ignores\" \
--app-bundle-id "com.dev-too.appl" --app-version 0.1.0 \
--out ./built
I have no problem with making prune default to true.
The main problem I have with making asar default to true is that as soon as that gets released, there is going to be an influx of issues filed on electron-packager with "module not found" errors when people use native extensions. Or really, any exception listed in the Electron docs.
I mentioned this issue in Electron's Slack channel a few weeks ago. Paul Betts mentioned that the way to handle my concerns about making asar true by default is to make sure that all shared libraries (.dll, .so, .dylib, .node) are backlisted from being packed by default. If someone implements that plus writes the appropriate amount of documentation (we may have to start a docs/faq.md), then I think I will be 👍 with moving forward.
enhancementFeature requesthelp wantedNeeds a contributor from the communityneeds work 🚧Feature request needs to be fleshed out before maintainers can take action on itreleased
Activity
junosuarez commentedon May 18, 2015
I support both of these as defaults
max-mapper commentedon May 18, 2015
i had seen a lot of open issues involving asar on the electron repo since it's relatively new. but if we think its bug-free now then i'm good with it
sindresorhus commentedon May 18, 2015
I don't think it's bug free, but it's pretty stable now, and Atom is using it so any issue will be fixed fast.
junosuarez commentedon May 18, 2015
aside: as someone who just had to leave their computer on overnight copying over a large ~/dev directory full of hundreds of thousands of files from
node_modulesdirectory trees on a faulty SSD, I kinda wish a certain software platform would move to archive-based dependencies, too :)ccorcos commentedon Feb 29, 2016
Only bad part of this is you'll have to re-install when you prune. Here's what I'm doing:
ccorcos commentedon Feb 29, 2016
zsh: command too long:(max-mapper commentedon Feb 29, 2016
if you pass the --prune flag to electron-packager it prunes for you in its tmpdir copy, which doesnt affect your source folder
ccorcos commentedon Feb 29, 2016
well then there we go!
enable `asar` and `prune` options by default - fixes #35
malept commentedon Jul 13, 2016
I have no problem with making
prunedefault to true.The main problem I have with making
asardefault to true is that as soon as that gets released, there is going to be an influx of issues filed on electron-packager with "module not found" errors when people use native extensions. Or really, any exception listed in the Electron docs.3 remaining items
Default the prune option to true
Default the prune option to true (#472)
[-]`--asar` and `--prune` should be enabled by default[/-][+]`--asar` should be enabled by default[/+]malept commentedon Oct 10, 2016
I mentioned this issue in Electron's Slack channel a few weeks ago. Paul Betts mentioned that the way to handle my concerns about making
asartrue by default is to make sure that all shared libraries (.dll,.so,.dylib,.node) are backlisted from being packed by default. If someone implements that plus writes the appropriate amount of documentation (we may have to start adocs/faq.md), then I think I will be 👍 with moving forward.Aid19801 commentedon Feb 2, 2020
malept commentedon Feb 6, 2020
mahnunchik commentedon Jun 25, 2020
asarpackaging produces broken icon in about window on linux platform: electron/electron#23850continuous-auth commentedon Oct 15, 2025
🎉 This issue has been resolved in version 19.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀