Have you registered a snap name with Canonical?
I recommend registering a name for the snap package with snapcraft.io, they may take time to approve the name.
I'm not super familiar with snaps. Are they used even for standalone binaries?
As an aside, I think we also need to decide on an official binary name for this project on Linux. I suspect several (if not all) distributions would deny us just calling it "edit". Perhaps "mse" for "MS Edit"? Not sure...
Are they used even for standalone binaries?
Oh yes! But it has to be compiled against a standard runtime image.
For example edlin
This is the config that publishes it edlin-snapcraft
Given the teeny tiny size of our team, it may be necessary to skip doing this to reduce our maintenance burden. Otherwise, I don't mind the idea.
I would not be shocked if some one else makes a snap and flatpak builds for this project
The name "edit" conflicts with one of the binaries shipped by vim. I had to name it "msedit" on my machines to be able to invoke it.
Hey there, snapd developer, here.
You can enroll the snap super easily. You need to add a single YAML file to the tree, click through some github intergration on snapcraft.io and register the store name (how the package will be called in the store).
You can learn how to do this for rust applications by following:
https://documentation.ubuntu.com/snapcraft/stable/how-to/integrations/craft-a-rust-app/
^ This is for rust applications, you should look at the wider tutorial at https://snapcraft.io/
If you have any questions please ask.
One more note, you can choose the type of sandbox to use and for something like Edit and given that it is written in rust a snapcraft base: bare with rust statically linked binary and confinement: classic would by my suggestion. The app would work and allow editing any files with the permission of the user.
We discussed this and decided that at the moment we'd like to not take responsibility for an official snap package. @zyga We appreciate your offer and if we ever move forward on this, we'd love your help.
@zyga btw snap install msedit on Ubuntu 24.04 currently suffers this problem trying to fix it via
sudo snap set msedit EDIT_CFG_ICU_RENAMING_VERSION=74.2-1
gave the error message:
error: cannot perform the following tasks:
- Run configure hook of "msedit" snap (snap "msedit" has no "configure" hook)