electron-builder
electron-builder copied to clipboard
Why the same file exists in asar and asar.unpacked.
- 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 ?
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.