Electron-builder: Install dependencies on OS during the app install ?

Created on 17 Feb 2017  Â·  3Comments  Â·  Source: electron-userland/electron-builder

Hi,

Is there a simple way to install OS libraries during the application install (or first launch) on Windows, macOS and Linux ? As example, if my application require a FUSE library (osxfuse on macOS) ?

question

Most helpful comment

macOS

pkg target and custom pre or post scripts. Or just ask user to install.

Windows

Using custom script https://github.com/electron-userland/electron-builder/wiki/NSIS#custom-nsis-script

Linux

FUSE preinstalled. I think maybe only some dep package should be bundled for AppImage or deb or snap.

All 3 comments

macOS

pkg target and custom pre or post scripts. Or just ask user to install.

Windows

Using custom script https://github.com/electron-userland/electron-builder/wiki/NSIS#custom-nsis-script

Linux

FUSE preinstalled. I think maybe only some dep package should be bundled for AppImage or deb or snap.

@develar thanks for very useful answer !

Feel free to ask about concrete target or investigate — e.g. for snap you must configure additional plugs fuse-support.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leo picture leo  Â·  3Comments

antonycourtney picture antonycourtney  Â·  3Comments

jhg picture jhg  Â·  3Comments

xingoxu picture xingoxu  Â·  3Comments

Ajeey picture Ajeey  Â·  3Comments