mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
android: Install p4a using pip Add 'set -e' to sh scripts, they must stop upon any error README.md: kivy does not specifically require python2 android: Overhaul initialization scripts android: Simplify apk build scripts by using the 'common' file Merge the scripts cardconv and cardsetsgiftobmp android: Fix startup script shebang to python3 android: Simplify mkkeystore and ignore the keystore file android: Fix up debian prerequisites The package cython (as opposed to cython3) even caused me to produce an apk that did not start (TypeError: must be str, not bytes). Android SDK requires java8; install and set as the default. The build processes complained about lld and libtinfo5; added in. mercurial (or hg) is seemingly unused. The pip pcakges were needed by android/initsdk.py which is gone. android: Ensure that the html files are built
33 lines
547 B
Bash
Executable file
33 lines
547 B
Bash
Executable file
#!/bin/bash
|
|
set -eux
|
|
|
|
. mkp4a.common
|
|
|
|
echo '### prepare sdk'
|
|
|
|
./initsdk
|
|
|
|
echo '### install p4a'
|
|
|
|
python3 -m pip install -q --user python-for-android
|
|
|
|
echo '### prepare source'
|
|
|
|
(cd .. && make rules)
|
|
|
|
mkdir -p ${tmpdir}
|
|
rm -rf ${tmpdir}
|
|
cp -a .. ${tmpdir}
|
|
rm -rf ${tmpdir}/android
|
|
rm -rf ${tmpdir}/src
|
|
cp -a main.py ${tmpdir}
|
|
mkdir -p ${tmpdir}/data/images/cards/bottoms/trumps-only
|
|
echo "" > ${tmpdir}/data/images/cards/bottoms/trumps-only/.keep
|
|
|
|
echo '### prepare cardsets'
|
|
|
|
./mkcards
|
|
|
|
cp -a ${cardsets_dir}/* ${tmpdir}/data
|
|
|
|
echo '### end init'
|