forked from Keriew/augustus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_build.sh
executable file
·76 lines (74 loc) · 1.76 KB
/
run_build.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env bash
set -e
case "$BUILD_TARGET" in
"vita")
docker exec vitasdk /bin/bash -c "cd build && make"
;;
"switch")
docker exec switchdev /bin/bash -c "cd build && make"
;;
"mac")
cp -r mods ./build
cp -r res/maps ./build
cp -r res/augustus_manual.pdf ./build
cd build && make && make install && \
echo "Creating disk image" && \
hdiutil create -volname Augustus -srcfolder augustus.app -ov -format UDZO augustus.dmg
if [[ ! -z "$TRAVIS_TAG" ]]
then
zip -r augustus.zip augustus.dmg mods maps augustus_manual.pdf
else
zip -r augustus.zip augustus.dmg
fi
;;
"appimage")
cp -r mods ./build
cp -r res/maps ./build
cp -r res/augustus_manual.pdf ./build
cd build && make && \
make DESTDIR=AppDir install && \
cd .. && \
./.ci_scripts/package_appimage.sh
if [[ ! -z "$TRAVIS_TAG" ]]
then
zip -r augustus.zip augustus.AppImage mods maps augustus_manual.pdf
else
zip zip -r augustus.zip . -i augustus.AppImage
fi
;;
"linux")
cp -r mods ./build
cp -r res/maps ./build
cp -r res/augustus_manual.pdf ./build
cd build && make
if [[ ! -z "$TRAVIS_TAG" ]]
then
zip -r augustus.zip augustus mods maps augustus_manual.pdf
else
zip -r augustus.zip augustus
fi
;;
"android")
cd android
if [ ! -f julius.keystore ]
then
COMMAND=assembleDebug
elif [ "$TRAVIS_BRANCH" == "master" ]
then
# Use last commit message for release notes
mkdir -p julius/src/main/play/release-notes/en-US
git log -1 --pretty=%B > julius/src/main/play/release-notes/en-US/internal.txt
COMMAND=publishRelease
else
COMMAND=assembleRelease
fi
TERM=dumb ./gradlew $COMMAND
if [ -f julius/build/outputs/apk/release/julius-release.apk ]
then
cp julius/build/outputs/apk/release/julius-release.apk ../build/julius.apk
fi
;;
*)
cd build && make
;;
esac