25 Commits

Author SHA1 Message Date
SiboVG
17813cfec6 Urgh, gradle snap really does not work? 2024-08-17 00:05:48 +02:00
SiboVG
d43f023f04 Revert back to core18, because gradle isn't supported elsewhere... 2024-08-16 21:49:46 +02:00
SiboVG
772faf73d5 Try to fix snap gradle 2024-08-16 21:33:41 +02:00
SiboVG
8e0a9fc1a4 Update snap for gradle build 2024-08-16 19:01:58 +02:00
Sibo Van Gool
5bd1bd285e Readd gnome... 2023-11-21 15:25:30 +01:00
Sibo Van Gool
565016cc8b Remove gnome extension 2023-11-21 13:47:41 +01:00
Sibo Van Gool
868fd13a2c Add JDK & JRE to site packages 2023-11-21 13:20:46 +01:00
Sibo Van Gool
9359cbc8ee Merge branch 'unstable' of github.com:openrocket/openrocket into unstable 2023-11-20 20:41:48 +01:00
Sibo Van Gool
f3974c2f6c Finalize mitigation to core22 2023-11-20 20:41:25 +01:00
Sibo Van Gool
1d9afcc247
Specify architectures separately... 2023-11-20 03:21:01 +01:00
Sibo Van Gool
fe20e2c590 Build for all architectures 2023-11-20 03:01:36 +01:00
Sibo Van Gool
fed0aebb58 Ensure Java 17 is used in snap ant build 2023-11-20 02:32:35 +01:00
SiboVG
4d4f7ef6a8 Still one Java 11 reference in snap... 2023-11-19 22:33:17 +01:00
SiboVG
773ab9fdeb Update snap OR logo 2023-11-19 22:26:15 +01:00
Sibo Van Gool
973bca70ec
Use JRE 17 for snap 2023-11-19 22:24:26 +01:00
Billy Olsen
4b6f28b74f Mark the snap grade as stable
The grade of the snap is marked as devel, which is great while the
app is being developed but means that the snap is not eligible to be
published to candidate or stable release channels. This change marks
the snap grade as stable to allow it to be released.

Additionally, the automatic snap publishing that happens for each
commit pushed to the unstable branch has been failing to release
the snap revisions due to a symlink introduced in the openjdk package
for which leaves a dangling symlink certs. The blacklisted.certs
should be now contained in blocked.certs so we add that to the list
of files to remove when being primed (final preparation for snap
packaging).

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-07-25 19:47:33 -07:00
Billy Olsen
9d6e2c1d8b Update snapcraft builds for dbcook's db
The update to use dbcook's component database adds a git submodule. The
submodule configuration needs to use an https transport rather than an
ssh transport for users not logged in through git (snapcraft builds
aren't; they're in a clean room).

Additionally, the snapcraft.yaml file needs to be told the source type
is git in order to automatically udpate an pull in submodules.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2022-02-23 20:20:28 -07:00
Billy Olsen
95f6f3c245 Update plugs per snap store review feedback
The snap store review team has approved auto-connecting the plugs
for OpenRocket to allow the application to access the .openrocket
and .java/.userPrefs directories on Linux without needing user
interaction.

This patch adjusts the snapcraft.yaml definition per the feedback at
https://forum.snapcraft.io/t/request-for-personal-files-for-openrocket/20579/5

This patch will also migrate the java preferences from the user's
home directory to the $SNAP_COMMON directory since write access will
not be allowed to the default preferences api.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-12-16 18:54:06 -07:00
Billy Olsen
6f19ba356f Rename user preference interface to include openrocket
Initial feedback from the Snapcraft store suggests to further refine
the dot-java-user-prefs interface name to include OpenRocket so its
clear to a user which files are being accessed. This changes the
interface name to accomodate that feedback.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-10-15 09:44:52 -07:00
Billy Olsen
82fea89bf0 Adjustments to snap stuff
Drop gcc as a build-dependency as LP#1883392 was fixed and delivered.
Additionally, change personal-files interfaces to be more explicit which
should allow for the snap store assertions which will possibly allow the
auto-connecting of the interfaces upon install for the OpenRocket app.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-07-26 10:06:10 -07:00
Billy Olsen
111b549a35 Add gcc as a build-package
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>
2020-06-13 14:43:14 -07:00
Billy Olsen
ed2f2cbf0a Add plugs to allow user to access ~/.java and ~/.openrocket
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>
2020-06-13 14:43:14 -07:00
Billy Olsen
38ca68fd3c Remove wget as a build dependency
Removes wget as a build dependency. Its not really needed and was
included in error.

Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
2020-06-13 14:43:14 -07:00
Billy Olsen
695ce2948f Fix user preferences location for snaps
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>
2020-06-13 14:43:14 -07:00
Billy Olsen
de741793fa Add snapcraft information for building snaps
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>
2020-06-13 14:43:14 -07:00