Skip to content

--asar should be enabled by default #35

Closed

Description

@sindresorhus

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.

Activity

  1. junosuarez commented on May 18, 2015

    @junosuarez
    Contributor

    I support both of these as defaults

  2. max-mapper commented on May 18, 2015

    @max-mapper
    Contributor

    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

  3. sindresorhus commented on May 18, 2015

    @sindresorhus
    ContributorAuthor

    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.

  4. junosuarez commented on May 18, 2015

    @junosuarez
    Contributor

    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 :)

  5. ccorcos commented on Feb 29, 2016

    @ccorcos

    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
  6. ccorcos commented on Feb 29, 2016

    @ccorcos

    zsh: command too long :(

  7. max-mapper commented on Feb 29, 2016

    @max-mapper
    Contributor

    if you pass the --prune flag to electron-packager it prunes for you in its tmpdir copy, which doesnt affect your source folder

  8. ccorcos commented on Feb 29, 2016

    @ccorcos

    well then there we go!

  9. added a commit that references this issue on May 13, 2016
    e387dc3
  10. malept commented on Jul 13, 2016

    @malept
    Member

    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.

  11. self-assigned this
    on Aug 11, 2016
  12. added this to the 8.0.0 milestone on Aug 11, 2016
  13. added
    enhancement
    on Aug 12, 2016
  14. 3 remaining items

  15. changed the title [-]`--asar` and `--prune` should be enabled by default[/-] [+]`--asar` should be enabled by default[/+] on Sep 3, 2016
  16. malept commented on Oct 10, 2016

    @malept
    Member

    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.

  17. added
    help wanted
    on Dec 10, 2016
  18. Aid19801 commented on Feb 2, 2020

    @Aid19801
  19. added
    needs work 🚧
    on Feb 6, 2020
  20. malept commented on Feb 6, 2020

    @malept
  21. removed
    needs work 🚧
    on Feb 6, 2020
  22. mahnunchik commented on Jun 25, 2020

    @mahnunchik

    asar packaging produces broken icon in about window on linux platform: electron/electron#23850

  23. added
    needs work 🚧
    on Oct 12, 2020
  24. continuous-auth commented on Oct 15, 2025

    @continuous-auth

    🎉 This issue has been resolved in version 19.0.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantedneeds work 🚧released

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions