electron-userland/electron-installer-snap

Name: electron-installer-snap

Owner: Electron Userland

Description: Build snap packages for Electron applications

Created: 2017-09-25 21:29:55.0

Updated: 2018-05-16 10:39:54.0

Pushed: 2018-04-08 12:31:37.0

Homepage: null

Size: 759

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Electron Installer: Snap

Build Status Code Coverage

Builds Snap files for Electron applications that have already been bundled and customized.

Requirements

Requires Node 4 or greater, and snapcraft.

Quick Start

The easiest way is to use Electron Forge and enable the snap maker.

To use this as a standalone CLI, install electron-installer-snap to your project:

install --save-dev electron-installer-snap

 add --dev electron-installer-snap

Then add to your package.json:


 ...
cripts": {
"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.

Options

Available command-line options are displayed when you run electron-installer-snap --help.

For the JavaScript API, please see the API docs.

Thanks

Thank you to Canonical for the support in getting this module created, during the September 2017 Ubuntu Rally and the January 2018 Snapcraft Summit.

Legal

This project is copyrighted under the Apache License (version 2). See LICENSE for details.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.