Adds gcc as a build package to work around a recently introduced
snapcraft bug (https://bugs.launchpad.net/snapcraft/+bug/1883392) which
causes the snap to fail to build due to not having gcc for the gnome
extensions.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Add plugs which use the personal-files interface for snaps to allow
the users to enable OpenRocket to access the ~/.java and ~/.openrocket
directories. Currently, these must be manually connected by the user,
so the launcher is updated to ensure the user experience degrades
appropriately when they are not connected.
This method allows for new installations to OpenRocket without any
changes and for users migrating to the snap from the jar to be able
to connect their existing preferences and databases.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Fix the user preferences location for snaps to go to the user's snap
directory $SNAP_USER_COMMON, which stores data across multiple versions
of the snap.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
Snaps are a universal packaging format for Linux platforms
and is available for most major Linux distributions.
This commit adds support for building OpenRocket as a snap. The
snap convention is to place snap relevant information in the top
level snap directory. The snapcraft.yaml file provides information
regarding what should be in the snap and how to build it.
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>