1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/android/mkp4a.release
2018-03-03 20:37:56 +02:00

63 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
pass1=""
pass2=""
keyalias="python"
keystore="${PWD}/bin/keystore"
if [ $1 ]
then
pass1=$1
pass2=$1
else
echo "usage: ./mkp4a.release <keystore-password> [<keyalias-password>] [<keyalias>] [<keystore-path>]"
echo " (use ./mkkeystore to create one in default location)"
exit
fi
if [ $2 ]
then
pass2=$2
fi
if [ $3 ]
then
keyalias=$3
fi
if [ $4 ]
then
keystore=$4
fi
export P4A_RELEASE_KEYSTORE="$keystore"
export P4A_RELEASE_KEYSTORE_PASSWD="$pass1"
export P4A_RELEASE_KEYALIAS_PASSWD="$pass2"
export P4A_RELEASE_KEYALIAS="$keyalias"
version=`./version.py`
python3 -m pythonforandroid.toolchain apk \
--sdk-dir ${HOME}/.cache/sdk-for-p4a \
--ndk-dir ${HOME}/.cache/sdk-for-p4a/ndk-bundle \
--android-api 19 \
--ndk-version r12b \
--arch armeabi-v7a \
--dist-name pysolfc \
--name pysolfc \
--bootstrap=sdl2 \
--requirements kivy,hostpython2,random2 \
--release \
--sign \
--minsdk 14 \
--private tmp/src \
--package org.lufebe16.gh.pysolfc \
--version ${version} \
--orientation sensor \
--color=always \
--icon tmp/src/data/images/misc/pysol01.png \
--presplash tmp/src/data/images/misc/pysol06.png \
--copy-libs
# keystore options (instead environment vars):
#
# keystore: --keystore <file>
# key alias --signkey <keyalias>
# keystore passwd --keystorepw <pass1>
# key passwd --signkeypw <pass2>