xref: /glogg/release-osx.sh (revision 1369f9b92aca62c702c7e47459d0640ff0a3938c)
1c11410ccSNicolas Bonnefon#!/bin/bash
2c11410ccSNicolas Bonnefon
3c11410ccSNicolas Bonnefon# Build glogg for OSX and make a DMG installer
4*1369f9b9SNicolas Bonnefon# (uses https://github.com/LinusU/node-appdmg)
5*1369f9b9SNicolas Bonnefon#
6*1369f9b9SNicolas Bonnefon# brew install node
7*1369f9b9SNicolas Bonnefon# npm install -g appdmg
8*1369f9b9SNicolas Bonnefon#
9*1369f9b9SNicolas 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
16c11410ccSNicolas Bonnefon    echo Please specify a version to build: $0 VERSION=1.2.3
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
23c11410ccSNicolas Bonnefonrm glogg_${VERSION}_installer.dmg
24c11410ccSNicolas Bonnefonappdmg osx_installer.json glogg_${VERSION}_installer.dmg
25