Skip to content
Snippets Groups Projects
Commit 5cb0bdcc authored by Bastien Nocera's avatar Bastien Nocera
Browse files

qemu static user with 'F' binfmt flag obsoletes that hack

Yay!
parent dcfd0c64
No related branches found
No related tags found
No related merge requests found
...@@ -6,23 +6,12 @@ VERSION=2.10 ...@@ -6,23 +6,12 @@ VERSION=2.10
APPID=`basename $FILE .json` APPID=`basename $FILE .json`
if [ x$TARGET != x`uname -p` -a ! -z "$TARGET" ]; then if [ x$TARGET != x`uname -p` -a ! -z "$TARGET" ]; then
if [ ! -x qemu-static ]; then
echo "QEmu static emulator missing as 'qemu-static' executable"
exit 1
fi
ARCH_OPT="--arch=$TARGET" ARCH_OPT="--arch=$TARGET"
ARCH_EMU_OPT="--arch-emulator=`pwd`/qemu-static"
else else
TARGET=`uname -p` TARGET=`uname -p`
fi 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 ================ echo ========== Building $APPID ================
rm -rf app rm -rf app
flatpak-builder $ARCH_OPT $ARCH_EMU_OPT --ccache --require-changes --repo=hello-repo --subject="${APPID} ${VERSION}" ${EXPORT_ARGS-} app $FILE && \ flatpak-builder $ARCH_OPT --ccache --require-changes --repo=hello-repo --subject="${APPID} ${VERSION}" ${EXPORT_ARGS-} app $FILE && \
flatpak build-bundle $ARCH_OPT hello-repo/ $APPID.$TARGET.xdgapp $APPID master flatpak build-bundle $ARCH_OPT hello-repo/ $APPID.$TARGET.xdgapp $APPID master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment