Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-installer-snap

Package Overview
Dependencies
Maintainers
6
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-installer-snap

Build snapcraft packages for Electron applications

  • 5.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
decreased by-14.9%
Maintainers
6
Weekly downloads
 
Created
Source

Electron Installer: Snap

Build Status Code Coverage

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

Requirements

Requires Node 10 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:

npm install --save-dev electron-installer-snap
# or
yarn add --dev electron-installer-snap

Then add to your package.json:

{
  // ...
  "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.

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.

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

Keywords

FAQs

Package last updated on 25 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc