SuperTux: fixed more absolute paths in the build script

This commit is contained in:
Sergii Pylypenko
2022-01-11 20:20:33 +02:00
parent e549b41333
commit 44047831b3

View File

@@ -10,12 +10,12 @@ PASS=
OUT=`pwd`/../../../../SuperTux-with-data.apk
DATAZIP=`pwd`/../../../../SuperTux-data.zip
rm -f $OUT $OUT-aligned
cp -f ../../../../project/app/build/outputs/apk/release/app-release.apk $OUT || exit 1
cd supertux/data || exit 1
if [ -e $HOME/.local/share/supertux2/tilecache ]; then
mkdir -p tilecache
cp -f $HOME/.local/share/supertux2/tilecache/* tilecache/
fi
cp -f ../../../../../../project/app/build/outputs/apk/release/app-release.apk $OUT || exit 1
if zipmerge -h >/dev/null; then
[ -e $DATAZIP ] || zip -r -9 $DATAZIP * || exit 1
zipmerge $OUT $DATAZIP || exit 1