In my Makefile,I’ve installed the final binary to /app/bin/xxx
id: com.example.xxx
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk//23.08
command: xxx
Why flatpak still report error: Error: Command 'xxx' not found?
Could anyone give me the reference document?
You will probably need to post the whole thing or a repo
My com.example.xxx.yml
id: com.example.xxx
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk//23.08
# sdk-extensions:
command: xxx
modules:
- name: xxx
buildsystem: autotools
no-autogen: true
make-install-args:
- Build_Flatpak=true
sources:
- type: dir
path: "../"
post-install:
- echo "------------------"
- ls "$FLATPAK_DEST/bin"
- echo "------------------"
My Makefile
install:
ifeq ($(Build_Flatpak), true)
@mkdir /app/bin
@mv xxx /app/bin/
else
@mv xxx /usr/bin/
endif
This is what I invoke to build:
$ flatpak run org.flatpak.Builder --force-clean --install --install-deps-from=flathub ../flat-build ./com.example.xxx.yml