Electron-builder: Symlinks in asarUnpack are not copied

Created on 15 Mar 2017  路  6Comments  路  Source: electron-userland/electron-builder

  • Version: 15.2.0

  • Target: Linux x64


With the asarUnpack option, it is possible to specify directories. The symlinks in those will not be copied in the app.asar.unpack/ destination folder.

I think we can see here that only files are added to the array filesToUnpack, and that no symlink will be added to filesToUnpack.

bug

Most helpful comment

Np!

https://github.com/Lucaszw/lerna-electron-builder-sample

After running electron builder:
app/dist/win-ia32-unpacked/resources/app/node_modules does not include lodash or backbone (dependencies of packages/app's siblings).

Running the installer leads to the following error message:

capture

All 6 comments

Workaround: set asar to false.

I hope it is obsolete now.

This issue (or at least a similar one) still appears to be occurring for me. I have a bunch of sibling packages, that are linked together via lerna bootstrap. When running electron-builder, the node_modules of the sibling packages are not installed causing some missing package errors.

lerna --version
2.5.1
electron-builder --version
19.56.0
npm --version
5.4.2
node --version
v8.2.1

@Lucaszw Is it possible to provide sample project?

Np!

https://github.com/Lucaszw/lerna-electron-builder-sample

After running electron builder:
app/dist/win-ia32-unpacked/resources/app/node_modules does not include lodash or backbone (dependencies of packages/app's siblings).

Running the installer leads to the following error message:

capture

Is there anything we can try to resolve this? I tried adding the relevant folders to asarUnpack, but no luck with that. In particular, I'm having an issue with Lovell's Sharp

Linux Mint 18.3 x64
Electron-builder 20.8.1
Node 8.11.1
npm 5.6.0

Thanks for all your hard work and any ideas you might have.

Was this page helpful?
0 / 5 - 0 ratings