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