Electron Installer: Snap
Builds Snap files for Electron applications that have already been bundled and customized.
Requires Node 10 or greater, and
The easiest way is to use Electron Forge and enable the
To use this as a standalone CLI, install
electron-installer-snap to your project:
npm install --save-dev electron-installer-snap# oryarn add --dev electron-installer-snap
Then add to your
// ..."scripts":"build:package": "electron-packager . --out=out""build:snap": "electron-installer-snap --src=out/myappname-linux-x64"// ...
Then you can run
npm run build:package && npm run build:snap, which will prepare the Electron app
for bundling and generate a
.snap file in your current directory.
It is recommended to ignore the generated
snap directory in your version control.
Available command-line options are displayed when you run
Thank you to Canonical for the support in getting this module created, during the September 2017 Ubuntu Rally and the January 2018 Snapcraft Summit.
This project is copyrighted under the Apache License (version 2). See LICENSE for details.