1#!/bin/bash 2 3# Build glogg for OSX and make a DMG installer 4# (uses https://github.com/andreyvit/create-dmg.git) 5 6QTDIR=$HOME/Sandbox/qt-5.5.1-release-static 7BOOST_PATH=$HOME/Sandbox/boost_1_59_0 8 9make clean 10if [ -z "$VERSION" ]; then 11 echo Please specify a version to build: $0 VERSION=1.2.3 12 exit 1 13else 14 $QTDIR/qtbase/bin/qmake glogg.pro CONFIG+="release no-dbus version_checker" BOOST_PATH=$BOOSTDIR VERSION="$VERSION" 15fi 16make -j8 17 18rm glogg_${VERSION}_installer.dmg 19appdmg osx_installer.json glogg_${VERSION}_installer.dmg 20