-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
34 lines (27 loc) · 1.01 KB
/
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
#!/bin/sh
echo build start at $(date)
echo -------------------------------+++++++++++++++ starting, setup env +++++++++++++++-------------------------------
if [ ! -d "$(pwd)/build" ]; then
:
else
rm -rf $(pwd)/build
fi
if [ ! -d "$(pwd)/output" ]; then
:
else
rm -rf $(pwd)/output
fi
echo -------------------------------+++++++++++++++ update local properties +++++++++++++++-------------------------------
#android update project -n BaiduBridge -t "android-24" --path .
#echo -------------------------------+++++++++++++++ build debug, sign with debug key
#+++++++++++++++-------------------------------
#ant debug
echo -------------------------------+++++++++++++++ build unsigned +++++++++++++++-------------------------------
#ant release
./gradlew clean
./gradlew assembleRelease
echo -------------------------------+++++++++++++++ copy output +++++++++++++++-------------------------------
if [ ! -d "$(pwd)/output" ]; then
mkdir $(pwd)/output
fi
cp $(pwd)/build/outputs/apk/turnstile-android-release.apk $(pwd)/output