xref: /glogg/release-osx.sh (revision a3ee2aa109d3946096bc912ee5b9a2922b3f4fc0)
1c11410ccSNicolas Bonnefon#!/bin/bash
2c11410ccSNicolas Bonnefon
3c11410ccSNicolas Bonnefon# Build glogg for OSX and make a DMG installer
41369f9b9SNicolas Bonnefon# (uses https://github.com/LinusU/node-appdmg)
51369f9b9SNicolas Bonnefon#
61369f9b9SNicolas Bonnefon# brew install node
71369f9b9SNicolas Bonnefon# npm install -g appdmg
81369f9b9SNicolas Bonnefon#
91369f9b9SNicolas Bonnefon# QTDIR is built -static
10c11410ccSNicolas Bonnefon
11c11410ccSNicolas BonnefonQTDIR=$HOME/Sandbox/qt-5.5.1-release-static
12c11410ccSNicolas BonnefonBOOST_PATH=$HOME/Sandbox/boost_1_59_0
13c11410ccSNicolas Bonnefon
14c11410ccSNicolas Bonnefonmake clean
15c11410ccSNicolas Bonnefonif [ -z "$VERSION" ]; then
16*a3ee2aa1SNicolas Bonnefon    echo Please specify a version to build: VERSION=1.2.3 $0
17c11410ccSNicolas Bonnefon    exit 1
18c11410ccSNicolas Bonnefonelse
19c11410ccSNicolas Bonnefon    $QTDIR/qtbase/bin/qmake glogg.pro CONFIG+="release no-dbus version_checker" BOOST_PATH=$BOOSTDIR VERSION="$VERSION"
20c11410ccSNicolas Bonnefonfi
21c11410ccSNicolas Bonnefonmake -j8
22c11410ccSNicolas Bonnefon
23*a3ee2aa1SNicolas Bonnefonsed -e "s/\"glogg\"/\"glogg $VERSION\"/" osx_installer.json >osx_${VERSION}_installer.json
24c11410ccSNicolas Bonnefonrm glogg_${VERSION}_installer.dmg
25*a3ee2aa1SNicolas Bonnefonappdmg osx_${VERSION}_installer.json glogg_${VERSION}_installer.dmg
26*a3ee2aa1SNicolas Bonnefonrm osx_${VERSION}_installer.json
27