-
-
Save JacobJohansen/998f3e7d7bb2c80b2b1a1c0dfc86ff2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VERSION=0.8.0.0 | |
BUILD_TYPE=debug | |
echo ============================ | |
echo Set version $VERSION | |
echo ============================ | |
TAG=$VERSION | |
python ./build/set_version.py $VERSION > ./src/version.h | |
python ./build/set_version.py $VERSION > ./3rdparty/crashreporter/src/version.h | |
echo DONE | |
echo ============================ | |
echo Setup Build Environment | |
echo ============================ | |
QTPATH=/Users/pyyoshi/Qt/5.3/clang_64/bin | |
export PATH=$PATH:$QTPATH | |
SOURCE_DIR=`pwd` | |
rm -fR ./bin/linux/$BUILD_TYPE/* | |
echo DONE | |
echo ============================ | |
echo Build project | |
echo ============================ | |
echo Build Crash Reporter : | |
cd ./3rdparty/crashreporter | |
qmake -v | |
qmake CONFIG+=$BUILD_TYPE DESTDIR=$SOURCE_DIR/bin/linux/$BUILD_TYPE | |
make -s clean | |
make -s -j 4 | |
cd $SOURCE_DIR | |
echo =========================== | |
echo Build Application : | |
cd ./src | |
#replace tag in Info.plist: | |
cp resources/Info.plist.sample resources/Info.plist | |
sed -i "s/0.0.0/$TAG/g" resources/Info.plist | |
sh ./configure | |
qmake CONFIG+=$BUILD_TYPE DESTDIR=$SOURCE_DIR/bin/linux/$BUILD_TYPE | |
make -s clean | |
make -s -j 4 | |
echo DONE | |
echo ============================ | |
echo Create $BUILD_TYPE bundle | |
echo ============================ | |
cd ./../ | |
BUNDLE_PATH=./bin/linux/$BUILD_TYPE/ | |
BUILD_DIR=$BUNDLE_PATH/rdm.app/Contents/ | |
MAC_TOOL=$QTPATH/macdeployqt | |
QML_DIR=$SOURCE_DIR/src/resources/qml | |
cp -f ./src/resources/Info.plist $BUILD_DIR/ | |
cp -f ./src/resources/rdm.icns $BUILD_DIR/Resources/ | |
cd $BUNDLE_PATH | |
$MAC_TOOL rdm.app -dmg -executable=./rdm.app/Contents/MacOS/crashreporter -qmldir=$QML_DIR | |
mv rdm.dmg redis-desktop-manager-$TAG.dmg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment