Closed yafp closed 4 years ago
You'll need to configure electron-builder
to stop publishing to Snapcraft. Please see their docs or issue tracker for this.
If you do want to publish to Snapcraft, have a look at this section in the README.
@samuelmeuli Thanks for your answer.
According to the electron-builder documention it might help to use the cli parameter -c.snap.publish=github
.
You can also configure publishing using CLI arguments, for example, to force publishing snap not to Snap Store, but to GitHub: -c.snap.publish=github
As far as i understand i would need to add this parameter to my package.json script for the linux build.
I am wondering how does your action know which script of the package.json file script section is has to execute - based on the current platform?
Config parsing is done by electron-builder
, not this action. All the action does is run the electron-builder
command with the correponding platform flag and set some environment variables.
I was building my electron app locally & manually in the past using electron builder. This produced a .snap file without issues which i was able to release via github releases.
Recently i switched to use your action to build directly on github.
The snap building part seems to fail because it it trying to release the app to snapcraft - which i basically don't event need.
is it possible with your action to just build .snap and publish it to github releases like it is working for any other build (i.e. .deb / .AppImage etc)?
If so - how?