electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

Why the same file exists in asar and asar.unpacked.

Open stefanJi opened this issue 2 years ago • 1 comments

  • Electron-Builder Version: 23.0.3
  • Node Version: v14.19.2
  • Electron Version: 15.3.0
  • Electron Type (current, beta, nightly):
  • Target: win32
  "files": [
    "src/lib/*.dll"
  ],
  "asarUnpack": [
    "src/lib/*.dll"
  ]

When build finish, *.dll files exists in asar and asar.unpacked. I think this will increment application size.

But If I written config as flow:

  "files": [
  ],
  "asarUnpack": [
    "src/lib/*.dll"
  ]

*.dll files will not exsits in asar or asar.unpacked.

So, how to make files only exsits in asar.unpacked ?

stefanJi avatar Jun 17 '22 10:06 stefanJi

I have this issue. The asarUnpack option merely unpacks files after the asar has been built, instead of preventing them from being added to the asar archive in the first place, so you end up with duplicate files and a larger app than necessary.

Jaifroid avatar Oct 09 '22 09:10 Jaifroid