SuperTux: fixed relative paths in the build script

This commit is contained in:
Sergii Pylypenko
2022-01-11 20:16:54 +02:00
parent c22deddf28
commit e549b41333

View File

@@ -1,11 +1,12 @@
#!/bin/sh
OUT=`pwd`/AndroidData/assetpack/data.zip
mkdir -p AndroidData/assetpack
[ -e AndroidData/assetpack/data.zip ] && exit 0
[ -e $OUT ] && exit 0
cd supertux/data || exit 1
sed 's/@LOGO_FILE@/logo_final.sprite/g' levels/misc/menu.stl.in > levels/misc/menu.stl
if [ -e $HOME/.local/share/supertux2/tilecache ]; then
mkdir -p tilecache
cp -f $HOME/.local/share/supertux2/tilecache/* tilecache/
fi
zip -r -9 ../../AndroidData/assetpack/data.zip .
zip -r -9 $OUT .