subsurface/scripts/mac/after_success.sh
Dirk Hohndel 9c3a45af95 Travis: add Mac build
This adds a -skip-googlemaps option to the build script since for some
reason trying to build the googlemaps plugin in the Travis mac
environment causes an error with a missing stack-protector-strong
feature.

The build relies on a custom build Qt and a cached homebrew environment.
And the result is of course not a DMG with a signed app but a zip file
with an unsigned app - so it's a bit harder to consume.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2017-11-14 21:39:15 -08:00

21 lines
600 B
Bash

#!/bin/bash
if [ ! -z $TRAVIS_BRANCH ] && [ "$TRAVIS_BRANCH" != "master" ] ; then
export UPLOADTOOL_SUFFIX=$TRAVIS_BRANCH
fi
# same git version magic as in the Makefile
# for the naming of the app
export VERSION=$(cd ${TRAVIS_BUILD_DIR}; ./scripts/get-version linux)
cd ${TRAVIS_BUILD_DIR}/build
zip -r Subsurface-$VERSION.app.zip Subsurface.app
echo "Submitting the folloing App for continuous build release:"
ls -lh Subsurface-$VERSION.app.zip
# get and run the upload script
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash ./upload.sh Subsurface-$VERSION.app.zip