-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support publishing to Snapcraft #3187
Comments
What is your development OS? |
macOS (both dev and on Travis) |
|
But it anyway we cannot require to install since it doesn't conform to our standards. Should be one-click experience, without tons of docs and "instal foo and bar". Ok, I will investigate. |
You already require installing
But yes, I agree, it would be much nicer without this manual step. |
|
@develar do you have suggestions on how we could distribute snapcraft for Mac such that electron-builder could handle publishing? /cc @sergiusens @kyrofa I love this idea. We're seeing quite a few instances of people publishing .snap files to GitHub releases. That doesn't give you the showcasing to the millions of Snap Store users, doesn't give you auto-updates, and requires trust ( |
Alternatively, we could write a handler in JavaScript, as was done in Ruby for Travis: |
Python is not a good language for CLI tools (the same as NodeJS ;)), but at least now snapcraft is available for macOS. I cannot find easily instructions how to install it on Windows without Linux subsystem. electron-builder 21 forces you to publish to store. A new publish provider electron build service cannot be used to publish snap for poor Windows users, who cannot migrate to a normal OS, because I don't want to take responsibility for credentials. Maybe later electron-builder will produce a special plugin for snapcraft, so, you will be able to use official build service from Canonical to build and publish your snap. I cannot predict when it will be implemented and will be implemented or not. I like how snapcrat is developer friendly (shame on you, bloody Apple and not so bloody but still, MS).
It will be released in 2 days. |
To make clear why — because snap is awesome. electron-builder goal is simple — you want just release your snap and that's all. Focus on your app development. Not to mix your sexual life and programming. So, even if big commercial companies allocate time to verify that app works in varios Linux distros (and should do it for obvious reasons), it is not an option for a lot of developers. And contradicts to what electron-builder promises. So, snap and publishing to snap store is strongly recommended. It is the only format that will just works in 99% (no even glibc dependency). |
@develar Awesome. And I totally agree with that thinking. |
So am I right in thinking that we can set publish to first - a generic server, providing auto-updates for Windows (edit: and existing AppImage) installs, and second - SnapCraft, which will allow auto-updates on Linux via SnapCraft, rather than integrated auto-updates? Or will this cause problems? |
So, how do I DISABLE publishing to SnapCraft. My build kept crashing...
|
@patarapolw a new issue might be better here, but I suspect your login credentials expired. |
Quoting @adam-lynch , on issue #4982, you can disable it by providing a generic provider:
|
electron-builder
has asnap
target, but it seems we still need to manually upload the binary usingsnapcraft push dist/appname_2.16.0_amd64.snap
and thensnapcraft release appname 1 stable
. Would be nice ifelectron-builder
could handle the publish-step too.More info: https://docs.snapcraft.io/build-snaps/publish
The text was updated successfully, but these errors were encountered: