mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
improve debug-release build script
This commit is contained in:
parent
b8e29423c4
commit
f58c567492
1 changed files with 23 additions and 2 deletions
|
@ -4,14 +4,35 @@ DIR=/tmp/build_$$_dir
|
|||
mkdir -p $DIR
|
||||
pushd $DIR
|
||||
|
||||
usage() {
|
||||
[ $# -ge 1 ] && echo "Error: $1"
|
||||
echo "builds debug variant from the current tip of github"
|
||||
echo "(last modified Jan 2024)"
|
||||
exit 1
|
||||
}
|
||||
|
||||
while [ $# -ge 1 ]; do
|
||||
case $1 in
|
||||
--help)
|
||||
usage
|
||||
;;
|
||||
*)
|
||||
usage "unexpected command $1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
git clone https://github.com/eehouse/xwords.git
|
||||
cd xwords/xwords4/android
|
||||
./gradlew asXw4dDeb
|
||||
|
||||
APK="$(find . -name '*.apk')"
|
||||
if [ -n "${XW4D_UPLOAD}" ]; then
|
||||
scp $(find . -name '*.apk') ${XW4D_UPLOAD}
|
||||
scp "$APK" ${XW4D_UPLOAD}
|
||||
echo "uploaded $APK"
|
||||
else
|
||||
echo "not uploading: XW4D_UPLOAD not set" >&2
|
||||
echo "not uploading $APK: XW4D_UPLOAD not set" >&2
|
||||
fi
|
||||
|
||||
popd
|
||||
|
|
Loading…
Add table
Reference in a new issue