Skip to content

Commit

Permalink
removed a redundancy from buildozer.init
Browse files Browse the repository at this point in the history
  • Loading branch information
lufebe16 committed Sep 27, 2023
1 parent 55d5111 commit 0112e83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ android/*.zip
android/bin/keystore
buildozer/.buildozer*
buildozer/PySolFC-Cardsets*
buildozer/cardsets
buildozer/bin
buildozer/tmp
buildozer/support*
Expand Down
4 changes: 1 addition & 3 deletions buildozer/buildozer.init
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
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.

Expand Down Expand Up @@ -31,7 +29,7 @@ echo '### prepare cardsets'

./mkcards

cp -a ${cardsets_dir}/* ${tmpdir}/data
cp -a cardsets/* ${tmpdir}/data

echo '### eval version'

Expand Down
4 changes: 4 additions & 0 deletions buildozer/mkcards
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ set -eux
cardsets_dir=PySolFC-Cardsets--Minimal-2.2.0
cardsets_file=${cardsets_dir}.tar.xz

rm -rf cardsets

echo '### prepare cardsets'

if [ ! -f ${cardsets_file} ]; then
Expand All @@ -25,4 +27,6 @@ echo '### processing cardsets'
done
)

ln -s ${cardsets_dir} cardsets

echo '### end cardsets'

0 comments on commit 0112e83

Please sign in to comment.