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

56 lines
1.1 KiB
Bash
Executable file

#!/bin/bash
echo '### p4a started'
# sdk-dir and nkd-dir from command line (fdroid mode)
sdkdir="${HOME}/.cache/sdk-for-p4a"
ndkdir="${HOME}/.cache/sdk-for-p4a/ndk-bundle"
if [ $1 ]
then
echo "set sdk to: $1"
sdkdir="$1"
fi
if [ $2 ]
then
echo "set ndk to: $2"
ndkdir="$2"
fi
echo '### run toolchain'
version=`./version.py`
python3 -m pythonforandroid.toolchain apk \
--sdk-dir ${sdkdir} \
--ndk-dir ${ndkdir} \
--android-api 19 \
--ndk-version r12b \
--arch armeabi-v7a \
--dist-name pysolfc \
--name pysolfc \
--bootstrap=sdl2 \
--requirements kivy,hostpython2,random2 \
--release \
--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
# python3 -m pythonforandroid.toolchain apk
# ...
# --release #1
# --sign #2
# ...
#
# ad 1,2:
# ohne: -> debug version
# 1: -> release unsigned
# 1 und 2: -> release version.
echo '### p4a finished'