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