-
Notifications
You must be signed in to change notification settings - Fork 369
/
release-osx.sh
executable file
·31 lines (27 loc) · 952 Bytes
/
release-osx.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# Build glogg for OSX and make a DMG installer
# (uses https://github.com/LinusU/node-appdmg)
#
# brew install node
# npm install -g appdmg
#
# QTDIR is built -static
QTDIR=$HOME/Sandbox/qt-5.8.0-release-static
BOOSTDIR=$HOME/Sandbox/boost_1_59_0
make clean
if [ ! -d "$BOOSTDIR" ]; then
echo $BOOSTDIR not found.
exit 1
elif [ -z "$VERSION" ]; then
echo Please specify a version to build: VERSION=1.2.3 $0
exit 1
else
$QTDIR/qtbase/bin/qmake glogg.pro LIBS+="-dead_strip" CONFIG+="release no-dbus version_checker" BOOST_PATH=$BOOSTDIR VERSION="$VERSION"
fi
make -j8
dsymutil release/glogg.app/Contents/MacOS/glogg
mv release/glogg.app/Contents/MacOS/glogg.dSYM release/glogg-$VERSION.dSYM
sed -e "s/\"glogg\"/\"glogg $VERSION\"/" osx_installer.json >osx_${VERSION}_installer.json
rm glogg_${VERSION}_installer.dmg
appdmg osx_${VERSION}_installer.json glogg_${VERSION}_installer.dmg
rm osx_${VERSION}_installer.json