1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/buildozer/buildozer.init
lufebe16 144f2b752b Kivy version updates:
- Android version checks restricted to android os present, corrects #310
- In buildozer.spec added support for 64k (#303). Blows up the apk by
  ca. 12M.
2023-04-21 18:23:04 +02:00

44 lines
942 B
Bash
Executable file

#!/bin/bash
set -eux
tmpdir=./tmp
cardsets_dir=PySolFC-Cardsets--Minimal-2.2.0
cardsets_file=${cardsets_dir}.tar.xz
# NOTE: $1 will be set with fdroid builds only.
echo '### prepare source'
(cd .. && make rules && make all_games_html && make mo)
mkdir -p ${tmpdir}
rm -rf ${tmpdir}/*
cp -a ../data ${tmpdir}
cp -a ../docs ${tmpdir}
cp -a ../html-src ${tmpdir}
cp -a ../locale ${tmpdir}
cp -a ../po ${tmpdir}
cp -a ../pysollib ${tmpdir}
cp -a ../scripts ${tmpdir}
cp -a ../pysol.py ${tmpdir}
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 '### add more java heap space for gradle'
# export GRADLE_OPTS="-Xms1724m -Xmx5048m -Dorg.gradle.jvmargs='-Xms1724m -Xmx5048m'"
echo '### end init'