mirror of https://github.com/qTox/qTox.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
803 B
30 lines
803 B
#!/usr/bin/env bash |
|
|
|
# SPDX-License-Identifier: GPL-3.0+ |
|
# |
|
# Copyright © 2018 by The qTox Project Contributors |
|
# |
|
# This script should be run from the root of the repository |
|
|
|
if [ ! -f ./flatpak/build-flatpak.sh ]; then |
|
echo "" |
|
echo "You are attempting to run the build-flatpak.sh from a wrong directory." |
|
echo "If you wish to run this script, you'll have to have" |
|
echo "the repository root directory as the working directory." |
|
echo "" |
|
exit 1 |
|
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" |
|
|
|
# use the version number in the name when building a tag on Travis CI |
|
if [ -n "$TRAVIS_TAG" ] |
|
then |
|
mv ./output/*.flatpak ./output/qTox-"$TRAVIS_TAG".flatpak |
|
fi
|
|
|