summaryrefslogtreecommitdiffstatshomepage
path: root/macdeploy.sh
blob: 6e914e5645cc8ffbddf5ad141a1b7855b14bd1ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
output="Author-$(date +%Y-%m-%d).dmg"
cd $(dirname $0)
rm -rf *app *dmg
git reset --hard &&
git pull --rebase &&
qmake -spec macx-g++ -config release &&
make -j3 &&
macdeployqt Author.app -dmg &&
mv Author.dmg "$output" &&
make distclean &&
rm -rf *.xcodeproj *.app &&
open "$output" &&
cat "$output" | ssh 192.168.1.100 "ssh zx2c4.com 'cat > ~/zx2c4.com/projects/author/snapshots/$output'"