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