mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00

Use reverse DNS naming for .desktop and .metainfo.xml as your supposed to do nowadays according to freedesktop.org. This also happens to match what is mandated by flatpak, so it simplifies the flatpak post install script a little. + cleanup the mess that flatpak builds can leave behind when you do a clean.
28 lines
938 B
Bash
Executable File
28 lines
938 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [[ ! -x $(which flatpak-builder) ]]; then
|
|
echo Please install flatpak-builder
|
|
exit
|
|
fi
|
|
|
|
if [[ ! $(flatpak list|grep org.freedesktop.Sdk|wc -l) -ge 1 ]]; then
|
|
echo Please ensure the necessary SDK and matching runtime are installed by running:
|
|
echo flatpak install flathub org.freedesktop.Platform//20.08 org.freedesktop.Sdk//20.08
|
|
exit
|
|
fi
|
|
|
|
flatpak-builder --repo=myrepo --force-clean build-flatpak contrib/linux/com.dosbox_x.DOSBox-X.yaml
|
|
if [ $? -eq 0 ]; then
|
|
echo
|
|
echo You can now install the flatpak by running the following commands:
|
|
echo
|
|
echo flatpak --user remote-add --no-gpg-verify myrepo myrepo
|
|
echo flatpak --user install myrepo com.dosbox_x.DOSBox-X
|
|
echo
|
|
echo You can then run the flatpak as follows:
|
|
echo flatpak run 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
|