Fixes for TeeWorlds compilation
This commit is contained in:
@@ -923,17 +923,14 @@ mkdir -p project/assets
|
||||
rm -f project/assets/*
|
||||
if [ -d "project/jni/application/src/AndroidData" ] ; then
|
||||
echo Copying asset files
|
||||
for F in project/jni/application/src/AndroidData/*; do
|
||||
if [ `cat $F | wc -c` -gt 1048576 ] ; then
|
||||
echo "Error: the file $F is bigger than 1048576 bytes - some Android devices will fail to extract such file"
|
||||
echo "Please use HTTP download method, or split your data into several small files with command:"
|
||||
echo "split -b 1000000 -d data.zip data.zip"
|
||||
echo "It will create files data.zip00, data.zip01 etc, and SDL will try to search for such files in assets when unpacking data.zip"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
cp project/jni/application/src/AndroidData/* project/assets/
|
||||
ln -s ../libs/armeabi/stdout-test project/assets/
|
||||
for F in project/assets/*; do
|
||||
if [ `cat $F | wc -c` -gt 1000000 ] ; then
|
||||
echo "The file $F is bigger than 1 megabyte - splitting it into smaller chunks"
|
||||
split -b 1000000 -d $F $F && rm $F || { echo "Error: 'split' command not installed" ; exit 1 ; }
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
echo Done
|
||||
|
||||
Reference in New Issue
Block a user