Skip to content

Commit

Permalink
Move to YAML based Flatpak manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
AFCMS committed May 16, 2024
1 parent b53ebaa commit fc9a13b
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
with:
arch: x86_64
bundle: ${{ env.FILE_NAME }}
manifest-path: net.minetest.minetest.json
manifest-path: net.minetest.minetest.yaml
cache-key: flatpak-builder-${{ github.sha }}
restore-cache: ${{ (github.event_name == 'workflow_dispatch' && inputs.use_cache) || !startsWith(github.ref, 'refs/tags/') }}
upload-artifact: true
Expand Down
53 changes: 0 additions & 53 deletions net.minetest.minetest.json

This file was deleted.

56 changes: 56 additions & 0 deletions net.minetest.minetest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
$schema: "https://raw.githubusercontent.com/flatpak/flatpak-builder/main/data/flatpak-manifest.schema.json"
app-id: net.minetest.minetest
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
command: minetest
rename-icon: minetest
finish-args:
- "--socket=wayland"
- "--socket=fallback-x11"
- "--socket=pulseaudio"
- "--device=all"
- "--share=ipc"
- "--share=network"
cleanup:
- "/include"
- "/lib/pkgconfig"
- "/share/aclocal"
- "/share/gtk-doc"
- "/share/man"
- "*.la"
- "*.a"

modules:
- name: libluajit
no-autogen: true
make-args:
- PREFIX=/app
make-install-args:
- PREFIX=/app
cleanup:
- "/bin"
sources:
- type: git
url: https://github.com/LuaJIT/LuaJIT.git
commit: dad04f1754723e76ba9dcf9f401f3134a0cd3972

- name: minetest
buildsystem: cmake-ninja
config-opts:
- "-DENABLE_CURSES=0"
- "-DENABLE_GETTEXT=1"
cleanup:
- "/share/minetest/games/devtest"
post-install:
- mv $FLATPAK_DEST/bin/minetest $FLATPAK_DEST/bin/minetest.bin
- install -Dm755 minetest.sh $FLATPAK_DEST/bin/minetest
sources:
- type: dir
path: .

- type: script
dest-filename: minetest.sh
commands:
- 'MINETEST_USER_PATH=$HOME/.var/app/net.minetest.minetest/.minetest exec minetest.bin "$@"'

0 comments on commit fc9a13b

Please sign in to comment.