-
-
Notifications
You must be signed in to change notification settings - Fork 263
Expand file tree
/
Copy pathbuild_skymap.sh
More file actions
executable file
·38 lines (35 loc) · 838 Bytes
/
build_skymap.sh
File metadata and controls
executable file
·38 lines (35 loc) · 838 Bytes
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
#!/bin/bash
set -euo pipefail
QUICK=false
FDROID=false
for arg in "$@"
do
case $arg in
--quick)
QUICK=true
shift
;;
--fdroid)
FDROID=true
shift
;;
esac
done
# Temporary script to regenerate the data and build the app.
if [ "$QUICK" = false ]; then
# TODO(jontayler): retire it once gradle can do this or
# or we get rid of the data generation step.
./gradlew clean :tools:installDist
(cd tools
# Gah. Gradle gets the classpath for the tools wrong. Fix:
sed -i -e 's#CLASSPATH=#CLASSPATH=$APP_HOME/lib/:#g' build/install/datagen/bin/datagen
rm -f build/install/datagen/bin/datagen-e
./generate.sh
./binary.sh)
./gradlew :app:bundleGmsRelease
fi
if [ "$FDROID" = true ]; then
./gradlew :app:assembleFdroid
else
./gradlew :app:assembleGms
fi