Godot Version
4.2.1 stable
Question
I’m trying to build my game as a Flatpak using the Godot base app here: GitHub - flathub/org.godotengine.godot.BaseApp
The Flatpak builds without errors, but when I try to run it I get this error:
ERROR: Pack version unsupported: 2.
Error: Couldn't load project data at path ".". Is the .pck file missing?
This is my manifest:
app-id: org.myuser.GodotApp
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
base: org.godotengine.godot.BaseApp
base-version: '3.5-23.08'
command: godot-runner
finish-args:
- --share=ipc
- --socket=x11
- --socket=pulseaudio
- --device=dri
modules:
- name: GodotApp
buildsystem: simple
build-commands:
- install GodotApp.pck /app/bin/godot-runner.pck
sources:
- type: file
path: GodotApp.pck
I have GodotApp.x86_64
and GodotApp.pck
in the current working directory when I run flatpak_builder
. I’m new to Flatpaks so I might be doing something wrong, but I can’t figure out what the problem is.
Thanks for the references. I’ve made changes to my manifest accordingly (not all of it is applicable as I have a very basic project that only needs an executable and .pck to run) but for some reason I am still unable to get it to work. I have even tried loading the .pck from a URL, and get the same error.
What’s even stranger is when I go to the directory the flatpak binary data is held, launcher.pck
is present alongside the godot-runner
and launcher
executables as you would expect. I can also build and run the two flatpaks you referenced no problem on my end so I am really not sure what’s wrong with mine. Perhaps I’m overlooking something obvious.
This is my manifest currently:
app-id: com.redacted.Launcher
base: org.godotengine.godot.BaseApp
base-version: '3.5-23.08'
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: launcher
finish-args:
- --share=ipc
- --socket=x11
- --filesystem=home
- --device=dri
- --share=network
modules:
- name: launcher
buildsystem: simple
sources:
- type: file
path: launcher.pck
sha256: sha-hash-here
- type: script
dest-filename: launcher.sh
commands:
- cd /app/bin/
- /app/bin/godot-runner --audio-driver Dummy --main-pack /app/bin/launcher.pck "$@"
build-commands:
- install -Dm755 launcher.sh /app/bin/launcher
- install -Dm644 launcher.pck /app/bin/launcher.pck