The Snapcraft target publishes your .snap
artifacts to the Snap Store. All configuration of your package is done via the snapcraft.md maker.
You can only publish to the Snap Store on Linux systems with the snapcraft
package installed.
npm install --save-dev @electron-forge/publisher-snapcraft
To use @electron-forge/publisher-snapcraft
, add it to the publishers
array in your Forge configuration:
{% code title="forge.config.js" %}
module.exports = {
// ...
publishers: [
{
name: '@electron-forge/publisher-snapcraft',
config: {
release: '[latest/edge, insider/stable]'
}
}
]
};
{% endcode %}
Configuration options are documented in PublisherSnapConfig
.