Snapcraft

The Snapcraft target publishes your .snap artifacts to the Snap Store. All configuration of your package is done via the Snapcraft maker.

Requirements

You can only publish to the Snap Store on Linux systems with the snapcraft package installed.

Installation

npm install --save-dev @electron-forge/publisher-snapcraft

Usage

To use @electron-forge/publisher-snapcraft, add it to the publishers array in your Forge configuration:

forge.config.js
module.exports = {
  // ...
  publishers: [
    {
      name: '@electron-forge/publisher-snapcraft',
      config: {
        release: '[latest/edge, insider/stable]'
      }
    }
  ]
};

Configuration options are documented in PublisherSnapConfig.

Last updated