diff --git a/.github/workflows/godot.yml b/.github/workflows/godot.yml index a24ce79..06d234e 100644 --- a/.github/workflows/godot.yml +++ b/.github/workflows/godot.yml @@ -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 }}' diff --git a/export/flatpak/launcher.desktop b/linux/net.hhoney.rota.desktop similarity index 100% rename from export/flatpak/launcher.desktop rename to linux/net.hhoney.rota.desktop diff --git a/export/flatpak/metainfo.xml b/linux/net.hhoney.rota.metainfo.xml similarity index 100% rename from export/flatpak/metainfo.xml rename to linux/net.hhoney.rota.metainfo.xml diff --git a/linux/net.hhoney.rota.yml b/linux/net.hhoney.rota.yml new file mode 100644 index 0000000..18b59e9 --- /dev/null +++ b/linux/net.hhoney.rota.yml @@ -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 + diff --git a/net.hhoney.rota.json b/net.hhoney.rota.json deleted file mode 100644 index 890e784..0000000 --- a/net.hhoney.rota.json +++ /dev/null @@ -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" - ] - } - ] -}