linux: Move to linux folder, update manifest

More closely aligns with the other games and their Flathub setups. Also
updates the workflow to not upload a tarball.
This commit is contained in:
Cassidy James Blaede 2025-01-15 16:49:06 -07:00
parent 555a69a33d
commit 590a4136ad
5 changed files with 31 additions and 41 deletions

View file

@ -53,5 +53,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
tar -cJf ${{ env.EXPORT_NAME }}.tar.xz ${{ env.EXPORT_NAME }}.pck
gh release upload '${{ github.ref_name }}' * --repo '${{ github.repository }}'
gh release upload '${{ github.ref_name }}' ${{ env.EXPORT_NAME }}.pck --repo '${{ github.repository }}'

30
linux/net.hhoney.rota.yml Normal file
View file

@ -0,0 +1,30 @@
id: net.hhoney.rota
runtime: org.freedesktop.Platform
runtime-version: '24.08'
base: org.godotengine.godot.BaseApp
base-version: '3.6'
sdk: org.freedesktop.Sdk
command: godot-runner
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --device=all
modules:
- name: rota
buildsystem: simple
sources:
- type: dir
path: ../
- type: file
url: https://github.com/HarmonyHoney/ROTA/releases/download/flathub3/ROTA.pck
sha256: fc7849b61e32c6ff6d8a8c4b31225c396ca845ee220436f75f665d60698c59a6
build-commands:
- install -Dm644 ROTA.pck ${FLATPAK_DEST}/bin/godot-runner.pck
- install -Dm644 linux/${FLATPAK_ID}.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 linux/${FLATPAK_ID}.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
- install -Dm644 media/image/icon/icon256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png

View file

@ -1,39 +0,0 @@
{
"id": "net.hhoney.rota",
"runtime": "org.freedesktop.Platform",
"runtime-version": "24.08",
"base": "org.godotengine.godot.BaseApp",
"base-version": "3.6",
"sdk": "org.freedesktop.Sdk",
"command": "godot-runner",
"finish-args": [
"--share=ipc",
"--socket=x11",
"--socket=pulseaudio",
"--device=dri"
],
"modules": [
{
"name": "rota",
"buildsystem": "simple",
"sources": [
{
"type": "file",
"url": "https://github.com/cassidyjames/ROTA/releases/download/0.0.10/rota-linux.pck",
"sha256": "603fc222d6b163cc332c0e1273c4f9b063236782ccef8dfcf0f8dc3aeaf1bb8d"
},
{
"type": "dir",
"path": "."
}
],
"build-commands": [
"ls -a",
"install -Dm644 rota-linux.pck ${FLATPAK_DEST}/bin/godot-runner.pck",
"install -Dm644 export/flatpak/launcher.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
"install -Dm644 export/flatpak/metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml",
"install -Dm644 media/image/icon/icon256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png"
]
}
]
}