-
Notifications
You must be signed in to change notification settings - Fork 38
/
build-mac.sh
executable file
·49 lines (45 loc) · 1.33 KB
/
build-mac.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
set -e
cd $(dirname $(readlink -f $0))
if test $(uname) = Linux; then
rsync --exclude=release -av * bhj-mac:$(up $PWD)
rsync release bhj-mac:$(up .) -av -L --exclude=*/adb_usb_driver_smartisan
remote-cmd bhj-mac bash -c "
export DOING_WRENCH_RELEASE=$DOING_WRENCH_RELEASE;
export ReleaseVersion='$ReleaseVersion';
set -x;
cd $(up .);
./build-mac.sh"
if test "$DOING_WRENCH_RELEASE"; then
rsync bhj-mac:$(up .)/Wrench.app ../Wrench-macos/ -av --delete
fi
else
set -e
(
cd lua
make macosx
)
(
cd luamd5
make PLATFORM=macx
)
rm Wrench.app -rf
if test ! -d ~/Qt5 -a -d ~/Qt5.bak; then
mv ~/Qt5.bak ~/Qt5
fi
for dir in . download; do
(
cd $dir
qmake
make -j8
)
done
rsync -L /usr/local/lib/plugins/libsnore-qt5/*.so wrench.lua macx/binaries/* release/* Wrench.app/Contents/MacOS/ -r
rm Wrench.dmg -f
macdeployqt Wrench.app -verbose=1 $(for x in Wrench.app/Contents/MacOS/*.so; do echo -executable=$x; done) -qmldir=${HOME}/src/github/Wrench/SnoreNotify/src/plugins/backends/snore
mv ~/Qt5 ~/Qt5.bak
if test "$DOING_WRENCH_RELEASE"; then
exit
fi
myscr bash -c 'ps-killall Wrench; of Wrench.app; oc Wrench.app' || true
fi