mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
52 lines
984 B
Bash
Executable file
52 lines
984 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
|
|
|
|
# remove useless load from the app
|
|
rm -rf ${tmpdir}/.git
|
|
rm -rf ${tmpdir}/.gitignore
|
|
rm -rf ${tmpdir}/Screenshots
|
|
rm -rf ${tmpdir}/build
|
|
rm -rf ${tmpdir}/contrib
|
|
rm -rf ${tmpdir}/dist
|
|
rm -rf ${tmpdir}/runtests.pl
|
|
rm -rf ${tmpdir}/tests
|
|
rm -rf ${tmpdir}/Brewfile
|
|
rm -rf ${tmpdir}/.appveyor.yml
|
|
rm -rf ${tmpdir}/.perltidyrc
|
|
rm -rf ${tmpdir}/.travis.yml
|
|
|
|
rm -rf ${tmpdir}/setup.py
|
|
rm -rf ${tmpdir}/setup_osx.py
|
|
rm -rf ${tmpdir}/setup.cfg
|
|
|
|
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'
|