mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +01:00
new script for when release builds required
This commit is contained in:
parent
f1c2eb79d4
commit
8286c9c116
1 changed files with 36 additions and 0 deletions
36
xwords4/android/scripts/build-install-rel.sh
Executable file
36
xwords4/android/scripts/build-install-rel.sh
Executable file
|
@ -0,0 +1,36 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
[ $# -gt 0 ] && echo "ERROR: $1"
|
||||||
|
echo "usage: $0 [--clean|--help]"
|
||||||
|
|
||||||
|
echo "meant for rapid work where a release build's required, this"
|
||||||
|
echo "builds, signs, and installs a Rel build of the xw4 variant"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
CLEAN=''
|
||||||
|
|
||||||
|
while [ $# -gt 0 ]; do
|
||||||
|
case $1 in
|
||||||
|
--clean)
|
||||||
|
CLEAN=clean
|
||||||
|
;;
|
||||||
|
--help)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
usage "unexpected command $1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
cd $(dirname $0)/..
|
||||||
|
pwd
|
||||||
|
|
||||||
|
./gradlew $CLEAN asXw4Rel
|
||||||
|
./scripts/sign-align.sh --apk $(find app/build -name '*xw4-release-unsigned-*.apk')
|
||||||
|
adb install -r $(find app/build -name '*xw4-release-signed-*.apk')
|
Loading…
Reference in a new issue