This is the code from the PyBeeWare
Briefcase
tutorial,
with the addition of a snapcraft.yaml
file so that the Converter
application can be run as a Snap in Linux!
A lot of the work figuring out the Snapcraft yaml was done by @Stephan-kashkarov.
Disclaimer: I do not fully understand everything here, this is just a proof of concept to find a working starting point for future work in getting Briefcase to build Snaps. If you do not know what I'm talking about, please go see the Beeware project!
These instructions have been tested on Ubuntu 18.04
In the root folder of this project:
sudo apt install snapcraft
(only if snapcraft is not installed)snapcraft
(may take 5-10 minutes or more depending on internet speed, this creates a vm and installs everything)sudo snap install --devmode --dangerous *.snap
converter-pybee
To uninstall the snap:
sudo snap remove converter-pybee
To clean up the build artifacts, in the root folder of this project:
snapcraft clean
- Can you make a nice little shortcut without having to add the app to the Snap store?
- Is there any further work required before the app could be added to the Snap store?
- Make Briefcase generate the
snapcraft.yaml
- Look into whether this current configuration works across a variety of Linux distributions, versions, and systems or if further investigation is required
Note for future: Snapcraft seems to be changing how it handles desktop interfaces. See this post.