FormularSumo / Star-Wars-Galaxy-Collection

A remake of the discontinued Star Wars Force Collection game https://formularsumo.github.io/Star-Wars-Galaxy-Collection-Web/ https://play.google.com/store/apps/details?id=com.formularsumo.starwarsforcecollectionremake.embed
GNU Affero General Public License v3.0
6 stars 0 forks source link

Linux build #82

Closed FormularSumo closed 2 weeks ago

FormularSumo commented 3 months ago

Linux builds can be distributed as either Debian packages or AppImages. There are some other methods but they're not guaranteed to work everywhere. Given I don't use a Debian distro currently I have just opted to make an AppImage and script for building it, which should be sufficient. It runs fine on my system, and will be attached to the 0.12 release.

FormularSumo commented 3 months ago

It might also be a nice idea to go back through previous versions and recompile them as AppImages

FormularSumo commented 2 weeks ago

So testing previous versions on Linux, they all run fine when run with the Love2D AppImage, but a lot of them crash when compiled into their own AppImage (loading battles/deck editor )

Specifically:

0.11 - Works 0.10 - Crashes 0.9 - Works 0.6.1 - 0.8 - Crash 0.2.0 - 0.6.0 - Don't crash, but don't load player one cards, whether compiled or running Love2D AppImage 0.1 - Works

So I think I'm going to only upload the ones that work fully to the old releases, and if people want to run the other versions they'll have to run it through Love2D, or on another platform/emulation.

FormularSumo commented 2 weeks ago

Relevant versions have now been uploaded, so closing this issue

FormularSumo commented 2 weeks ago

https://docs.appimage.org/packaging-guide/optional/appstream.html - for adding metadata to AppImages. I've tried to do for the 0.12 build but not sure if it's working

FormularSumo commented 1 day ago

It was not working, reading the error message in appimagetool it needed to be called love.appdata.xml rather than galaxy collection.appdata.xml. It's not however complaining that the metadata itself is partially missing so that needs fixing before I can build correctly.

FormularSumo commented 1 day ago

Fixed the above by renaming all love instances to org.love2d.love duplicating org.love2.love.desktop into user/share/applications. However the AppImage that's be created currently won't run with or without metadata/any of these changes..

https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html

FormularSumo commented 1 day ago

Currently it's not building unless I leave the name in love.desktop and of the executable file in squash.fs as "love", so doing that for now. Doesn't really matter as end user should never see it.

FormularSumo commented 1 day ago

So bit of a problem. I can only build when I leave the executable name as "love", but the AppStream data won't get added unless I change the name to something along the lines of "org.love2d.love", so if I have to choose between a working game without metadata and a non-working one with.. I don't think there's much choice.

FormularSumo commented 1 day ago

Have moved the metadata file into uncompressed for now, might look into again in future when it's not so broken.