Manifest below.
I have had endless issues trying to find useful documentation regarding command: in the manifest. There is only one example on Building your first Flatpak - Flatpak documentation . And I rarely get it to work.
I almost inevitably get an “Error: Command ‘snis.sh’ not found”
I have tried different names, paths, everything I can think of.
It can’t be as hard as I am making it.
What am I missing?
Yes, the file snis.sh is in /app/bin/snis.sh
id: io.github.smcameron.space-nerds-in-space
runtime: org.freedesktop.Platform
runtime-version: "25.08"
sdk: org.freedesktop.Sdk
command: snis.sh
finish-args:
- --socket=x11
- --share=ipc
- --device=dri
- --share=network
- --socket=pulseaudio
cleanup:
- '/patches'
modules:
# author prefers not to host asset binaries on git. So I host them.
#This module removes the need to download many assets on the first run.
- name: assets_not_hosted
buildsystem: simple
build-commands:
- cp -R share ${FLATPAK_DEST}/share
- cp -R patches ${FLATPAK_DEST}
sources:
- type: git
url: https://github.com/vpelss/snis_flatpak.git
commit: 3bb2936da03097a5ef8769f1819d8cbe92f140f4
- name: portaudio
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_POLICY_VERSION_MINIMUM=3.5
sources:
- type: git
url: https://github.com/PortAudio/portaudio.git
tag: v19.7.0
commit: 147dd722548358763a8b649b3e4b41dfffbcfbb6
- name: nanotts_pico2wav
buildsystem: simple
build-commands:
- patch svoxpico/picoapi.c -i ${FLATPAK_DEST}/patches/picoapi_patch.txt
- mkdir -p ${FLATPAK_DEST}/bin/lang
- cd svoxpico; ./autogen.sh && ./configure --host `uname -m` && make -j
- make
- install -Dm755 nanotts ${FLATPAK_DEST}/bin/nanotts
- cp -R lang ${FLATPAK_DEST}/bin
sources:
- type: git
url: https://github.com/gmn/nanotts.git
commit: d8b91f3d9d524c30f6fe8098ea7a0a638c889cf9
- shared-modules/lua5.3/lua-5.3.5.json
- shared-modules/glu/glu-9.json
- shared-modules/glew/glew.json
- name: snis
buildsystem: simple
build-commands:
- make install PREFIX=${FLATPAK_DEST} WITHVOICECHAT=yes
- install -Dm0644 share/applications/${FLATPAK_ID}.svg "${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg"
- install -Dm0644 share/metainfo/${FLATPAK_ID}.metainfo.xml.template "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml.template"
- install -Dm0644 share/applications/${FLATPAK_ID}.desktop "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
#- install -Dm755 snis.sh ${FLATPAK_DEST}/bin/snis.sh
sources:
- type: git
url: https://github.com/smcameron/space-nerds-in-space.git
commit: 6e62b2100ccb7e91949c58868a658b882fabae3e
- name: snis_sh
buildsystem: simple
build-commands:
- install -Dm755 snis.sh ${FLATPAK_DEST}/bin/snis.sh
sources:
- type: script
dest-filename: snis.sh
commands:
- cd /app/bin
- exec ./snis_client --fullscreen --auto-download-assets