RECORDANDRONCO/packaging/package-all.sh
2017-07-15 16:29:04 +01:00

28 lines
530 B
Bash
Executable File

#!/bin/bash
if [ $# -ne "2" ]; then
echo "Usage: `basename $0` version outputdir"
exit 1
fi
# Set the working dir to the location of this script
cd "$(dirname $0)"
pushd windows >/dev/null
echo "Building Windows package"
./buildpackage.sh "$1" "$2"
if [ $? -ne 0 ]; then
echo "Windows package build failed."
fi
popd >/dev/null
pushd osx >/dev/null
echo "Building macOS package"
./buildpackage.sh "$1" "$2"
if [ $? -ne 0 ]; then
echo "macOS package build failed."
fi
popd >/dev/null
echo "Package build done."