add flatpak script

required so that flatpak run is a valid command inside the container
This commit is contained in:
Dovi Cowan 2022-02-17 15:19:30 +00:00
parent 19d231446f
commit 7751e78167
No known key found for this signature in database
GPG key ID: 90EF4BCEFEE7D2BD
2 changed files with 16 additions and 1 deletions

View file

@ -30,9 +30,16 @@ finish-args:
# If we had external dependencies that weren't included in our SDK, we would list
# them here.
modules:
- name: flatpak-script
buildsystem: simple
build-commands:
- install -D flatpak.sh /app/bin/flatpak
sources:
- type: file
path: sources/flatpak.sh
- name: webpin
buildsystem: meson
sources:
- type: dir
path: .

8
sources/flatpak.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/bash
# The build system puts this file as /app/bin/flatpak
# in the container
# This is required so that the container sees "flatpak" as a valid command
# so that it will read the .desktop files
echo "flatpak"