forked from organicmaps/organicmaps
[AND] Convenience build script.
This commit is contained in:
parent
790bfd4934
commit
0ae7d1fbc4
2 changed files with 57 additions and 1 deletions
2
android/.gitignore
vendored
2
android/.gitignore
vendored
|
@ -8,7 +8,7 @@ obj/
|
|||
.gradle/
|
||||
build/
|
||||
3rd_party/api-android/
|
||||
|
||||
RELEASE/
|
||||
|
||||
*.class
|
||||
.classpath
|
||||
|
|
56
android/prepare_release.sh
Normal file
56
android/prepare_release.sh
Normal file
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e -u -x
|
||||
|
||||
OUTPUT_DIR=RELEASE
|
||||
# clean up output
|
||||
mkdir -p $OUTPUT_DIR
|
||||
rm $OUTPUT_DIR/* || true
|
||||
|
||||
# create version tag
|
||||
VERSION=$1
|
||||
DATE=$(date "+%y%m%d")
|
||||
VERSION_TAG=$(echo "$VERSION-$DATE")
|
||||
|
||||
echo "Build as: $VERSION $OUTPUT_DIR $DATE"
|
||||
|
||||
##
|
||||
# MapsWithMeLite: Google, Amazon, Yandex, SlideMe, AndroidPit
|
||||
##
|
||||
SOURCE_DIR=MapsWithMeLite
|
||||
LITE_TARGETS=(google amazon yandex slideme androidpit)
|
||||
BASE_NAME=MapsWithMeLite
|
||||
|
||||
pushd $SOURCE_DIR
|
||||
for TARGET in ${LITE_TARGETS[*]}
|
||||
do
|
||||
ant clean ${TARGET}-production
|
||||
NAME=$(echo "${BASE_NAME}-${VERSION_TAG}-${TARGET}")
|
||||
cp bin/*-production.apk ../$OUTPUT_DIR/${NAME}.apk
|
||||
done
|
||||
popd
|
||||
|
||||
##
|
||||
# MapsWithMeLite: Samsung
|
||||
##
|
||||
SOURCE_DIR=MapsWithMeLite.Samsung
|
||||
TARGET=samsung
|
||||
pushd $SOURCE_DIR
|
||||
ant clean ${TARGET}-production
|
||||
NAME=$(echo "${BASE_NAME}-${VERSION_TAG}-${TARGET}")
|
||||
cp bin/*-production.apk ../$OUTPUT_DIR/${NAME}.apk
|
||||
popd
|
||||
|
||||
##
|
||||
# MapsWithMePro: common version
|
||||
##
|
||||
SOURCE_DIR=MapsWithMePro
|
||||
BASE_NAME=MapsWithMePro
|
||||
pushd $SOURCE_DIR
|
||||
ant clean production
|
||||
NAME=$(echo "${BASE_NAME}-${VERSION_TAG}")
|
||||
cp bin/*-production.apk ../$OUTPUT_DIR/${NAME}.apk
|
||||
popd
|
||||
|
||||
echo "Builded!"
|
||||
ls -lh $OUTPUT_DIR
|
Loading…
Add table
Reference in a new issue