WineBarrels-BasePlatforms/BasePlatform/v1/build.sh

18 lines
710 B
Bash
Raw Normal View History

2019-04-17 13:24:28 +00:00
#! /usr/bin/env bash
CONF_PATH=`dirname $0`
2019-08-03 20:16:26 +00:00
2019-04-17 13:24:28 +00:00
if [ -z "$NO_32BIT" ]; then
flatpak-builder $2 --arch=i386 build32 "$CONF_PATH/Base$1-i386.yaml" || exit 1
2019-08-03 20:16:26 +00:00
if [ ! -z $3 ]; then
flatpak-builder $4 --arch=i386 --export-only "--repo=$3" build32 "$CONF_PATH/Base$1-i386.yaml" || exit 3
fi
2019-04-17 13:24:28 +00:00
fi
if [ -z "$NO_64BIT" ]; then
2019-08-03 20:16:26 +00:00
ostree export --repo ~/.local/share/flatpak/repo runtime/org.freedesktop.Platform.Compat.i386/x86_64/18.08 > "$CONF_PATH/i386.tar" &&
2019-04-17 13:24:28 +00:00
flatpak-builder $2 --arch=x86_64 build64 "$CONF_PATH/Base$1-x86_64.yaml" || exit 2
2019-08-03 20:16:26 +00:00
if [ ! -z $3 ]; then
flatpak-builder $4 --arch=x86_64 --export-only "--repo=$3" build64 "$CONF_PATH/Base$1-x86_64.yaml" || exit 3
fi
2019-04-17 13:24:28 +00:00
fi