1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Build support for android:

- added fdroid.init
This commit is contained in:
lufebe16 2022-11-24 13:57:31 +01:00
parent 5357713b87
commit a69bee95cc

33
buildozer/fdroid.init Executable file
View file

@ -0,0 +1,33 @@
#!/bin/bash
set -eux
tmpdir=..
cardsets_dir=PySolFC-Cardsets--Minimal-2.1.0
cardsets_file=${cardsets_dir}.tar.xz
echo '### prepare source'
(cd .. && make rules && make all_games_html && make mo)
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 '### eval version'
./version.py > ${tmpdir}/version.txt
echo '### prepare buildozer'
sed -r "s:#? ?source.dir =.*:source.dir = ..:" -i buildozer.spec
sed -r "s:#? ?source.exclude_dirs =.*:source.exclude_dirs = Screenshots,android,buildozer,tests:" -i buildozer.spec
sed -r "s:#? ?source.exclude_patterns =.*:source.exclude_patterns = README.*,AUTHORS.md,CONTRIBUTING.md,COPYING,MANIFEST.in,Makefile,NEWS.asciidoc,appdata.xml,pysol.py,run-tests.pl,setup.cfg,setup.py,setup_osx.py,local.properties,p4a_env_vars.txt:" -i buildozer.spec
sed -r "s:#? ?android.skip_update =.*:android.skip_update = True:" -i buildozer.spec
echo '### end init'