dosbox-x/make-flatpak.sh
rderooy 2cac989664 Move appdata.xml to metainfo.xml as the former is deprecated.
Part of getting things ready for flatpak support
2020-09-27 21:27:59 +02:00

20 lines
702 B
Bash
Executable File

#!/bin/sh
# flatpak build will fail immediately if it cannot find the metainfo.xml file
# But we have a dosbox-x.metainfo.xml.in file that first needs processing by autotools
./autogen.sh
./configure
cd contrib/linux
flatpak-builder --repo=../../repo --force-clean ../../build-flatpak com.dosbox_x.DOSBox-X.yaml
if [ $? -eq 0 ]; then
echo You can now install the flatpak by running the following commands:
echo
echo flatpak --user remote-add --no-gpg-verify myrepo repo
echo flatpak --user install myrepo com.dosbox_x.DOSBox-X
echo
echo Or you can test it without installing by running:
echo flatpak-builder --run build-flatpak contrib/linux/com.dosbox_x.DOSBox-X.yaml dosbox-x
fi
cd ../..