From dcfd0c648161055dc9c00e2ccc24eb20b7516e11 Mon Sep 17 00:00:00 2001 From: Bastien Nocera <hadess@hadess.net> Date: Tue, 9 Aug 2016 16:40:07 +0200 Subject: [PATCH] Make it also work with the --arch-emulator hack --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.sh b/build.sh index 8ba62ae..6d7f9e0 100755 --- a/build.sh +++ b/build.sh @@ -17,6 +17,11 @@ else TARGET=`uname -p` fi +# Unset the --arch-emulator if flatpak doesn't support it +if [ ! -z "$ARCH_EMU_OPT" ] ; then + flatpak-builder --help | grep -q arch-emulator || ARCH_EMU_OPT="" +fi + echo ========== Building $APPID ================ rm -rf app flatpak-builder $ARCH_OPT $ARCH_EMU_OPT --ccache --require-changes --repo=hello-repo --subject="${APPID} ${VERSION}" ${EXPORT_ARGS-} app $FILE && \ -- GitLab