-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildmacos
executable file
·55 lines (44 loc) · 1.18 KB
/
buildmacos
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
QTVERSION=5.13.2
function dobuild {
cd PathGenCommon
make CONFIG=release clean
make CONFIG=release
cd ..
cd XeroGenV1
make CONFIG=release clean
make CONFIG=release
cp release/XeroGenV1 ../generators
cd ..
cd PathFinderV1Gen
make CONFIG=release clean
make CONFIG=release
cp release/PathFinderV1Gen ../generators
cd ..
pushd PoofsGenerator
make CONFIG=release clean
make CONFIG=release
cp release/PoofsGenerator ../generators
popd
pushd XeroPathCommon
qmake -makefile
make clean
make
popd
qhelpgenerator html/xeropath.qhp -o html/xeropath.qch
qhelpgenerator html/xeropath.qhcp -o html/xeropath.qhc
pushd XeroPathGenerator
qmake -makefile
make clean
make
popd
}
function docopy {
cp ~/Qt/$QTVERSION/clang_64/bin/Assistant.app/Contents/MacOS/Assistant x64/release/XeroPathGenerator.app/Contents/MacOS/Assistant
}
rm -rf x64/release
dobuild
docopy
ASSISTANTLOC=`pwd`/x64/release/XeroPathGenerator.app/Contents/MacOS/Assistant
macdeployqt x64/release/XeroPathGenerator.app -always-overwrite -dmg -executable=$ASSISTANTLOC
cp x64/release/XeroPathGenerator.dmg .