|
|
|
@ -6,6 +6,16 @@
@@ -6,6 +6,16 @@
|
|
|
|
|
# |
|
|
|
|
# This script should be run from the root of the repository |
|
|
|
|
|
|
|
|
|
# usage: ./flatpak/build-flatpak.sh [Debug] |
|
|
|
|
# |
|
|
|
|
# If [Debug] is set to "Debug" the container will run in interactive mode and |
|
|
|
|
# stay open to poke around in the filesystem. |
|
|
|
|
|
|
|
|
|
readonly DEBUG="$1" |
|
|
|
|
|
|
|
|
|
# Fail out on error |
|
|
|
|
set -exo pipefail |
|
|
|
|
|
|
|
|
|
if [ ! -f ./flatpak/build-flatpak.sh ]; then |
|
|
|
|
echo "" |
|
|
|
|
echo "You are attempting to run the build-flatpak.sh from a wrong directory." |
|
|
|
@ -17,11 +27,23 @@ fi
@@ -17,11 +27,23 @@ fi
|
|
|
|
|
|
|
|
|
|
mkdir -p ./output |
|
|
|
|
|
|
|
|
|
docker run --rm --privileged \ |
|
|
|
|
-v $PWD:/qtox \ |
|
|
|
|
-v $PWD/output:/output \ |
|
|
|
|
debian:stretch-slim \ |
|
|
|
|
/bin/bash -c "/qtox/flatpak/build.sh" |
|
|
|
|
if [ "$DEBUG" == "Debug" ] |
|
|
|
|
then |
|
|
|
|
echo "Execute: /qtox/appimage/build.sh to start the build script" |
|
|
|
|
echo "Execute: exit to leave the container" |
|
|
|
|
|
|
|
|
|
docker run --rm --privileged -it \ |
|
|
|
|
-v $PWD:/qtox \ |
|
|
|
|
-v $PWD/output:/output \ |
|
|
|
|
debian:stretch-slim \ |
|
|
|
|
/bin/bash |
|
|
|
|
else |
|
|
|
|
docker run --rm --privileged \ |
|
|
|
|
-v $PWD:/qtox \ |
|
|
|
|
-v $PWD/output:/output \ |
|
|
|
|
debian:stretch-slim \ |
|
|
|
|
/bin/bash -c "/qtox/flatpak/build.sh" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
# use the version number in the name when building a tag on Travis CI |
|
|
|
|
if [ -n "$TRAVIS_TAG" ] |
|
|
|
|