Electron-builder: How to disable packing into asar files?

Created on 21 May 2016  Â·  5Comments  Â·  Source: electron-userland/electron-builder

Hi guys, i notice that after we installed the app fr the installer, our html sources files are all pack into app. asar and electron. asar. May i know is there a way to open it or not pack our source file into asar? This is because for maintenance convenience, we sometimes need to modify the html coding at the spot..

question

Most helpful comment

just add asar: false under build in you dev package.json
see https://github.com/electron-userland/electron-builder/wiki/Options#build

All 5 comments

just add asar: false under build in you dev package.json
see https://github.com/electron-userland/electron-builder/wiki/Options#build

You should use asar because

  • Windows io is very poor — app start up time.
  • You must not (yes, must) modify app files after installation — code signing. Please use standard system locations to store user config.

@develar , u mean if i disable the asar, it wil take longer time for my app to start up?

Can u explain more on what is code signing? And what is standard system location to store user config?

I know that code signing is for security purposes but my app won't be distributing online. It will only be used privately.

Was this page helpful?
0 / 5 - 0 ratings