Prepack every asset
It should now be possible to install and play a game without downloading anything from the internet Bump to rev111
This commit is contained in:
@@ -4,13 +4,13 @@
|
||||
AppName="OpenTTD"
|
||||
|
||||
# Specify reversed site name of application (e.x. com.mysite.myapp)
|
||||
AppFullName=org.openttd.sdl
|
||||
AppFullName=org.openttd.fdroid
|
||||
|
||||
# Application version code (integer)
|
||||
AppVersionCode=1220110
|
||||
AppVersionCode=1220111
|
||||
|
||||
# Application user-visible version name (string)
|
||||
AppVersionName="12.2.rev110"
|
||||
AppVersionName="12.2.rev111"
|
||||
|
||||
# Specify path to download application data in zip archive in the form 'Description|URL|MirrorURL^Description2|URL2|MirrorURL2^...'
|
||||
# If you'll start Description with '!' symbol it will be enabled by default, '!!' will also hide the entry from the menu, so it cannot be disabled
|
||||
@@ -22,7 +22,7 @@ AppVersionName="12.2.rev110"
|
||||
# The mount directory will be returned by calling getenv("ANDROID_OBB_MOUNT_DIR")
|
||||
# You can use .zip.xz archives for better compression, but you need to add 'lzma' to CompiledLibraries
|
||||
# Generate .zip.xz files like this: zip -0 -r data.zip your-data/* ; xz -8 data.zip
|
||||
AppDataDownloadUrl="!!Data files|openttd-data-12.2-0.zip.xz^!!Config file|:.openttd/openttd.cfg:openttd-1.4.0.30.cfg^!!MIDI music support (18 Mb)|timidity.zip.xz|https://sourceforge.net/projects/libsdl-android/files/timidity.zip.xz^!!Internationalization files|icudt62l.zip.xz|https://sourceforge.net/projects/libsdl-android/files/icudt62l.zip.xz^!!Fonts|openttd-fonts.zip.xz|https://sourceforge.net/projects/libsdl-android/files/openttd-fonts.zip.xz"
|
||||
AppDataDownloadUrl="!!Data files|openttd-data-12.2-0.zip.xz^!!Config file|:.openttd/openttd.cfg:openttd-1.4.0.30.cfg^!!!!MIDI music support|timidity.zip.xz^!!Internationalization files|icudt62l.zip.xz^!!Fonts|openttd-fonts.zip.xz"
|
||||
|
||||
# Reset SDL config when updating application to the new version (y) / (n)
|
||||
ResetSdlConfigForThisVersion=y
|
||||
|
||||
@@ -111,6 +111,6 @@ ${CMAKE_BIN_LOC}cmake --install openttd-$VER-$1 --prefix ./staging-openttd-$VER-
|
||||
cp staging-openttd-$VER-$1/games/libapplication.so libapplication-$1.so;
|
||||
mkdir -p ./data
|
||||
cp -r staging-openttd-$VER-$1/share/games/application/* data/
|
||||
./pack-data.sh
|
||||
./pack-data.sh "${ARCH}"
|
||||
|
||||
set +e
|
||||
|
||||
@@ -1,7 +1,43 @@
|
||||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
VER=12.2-0
|
||||
GFX_VERSION=7.1
|
||||
SFX_VERSION=1.0.3
|
||||
MSX_VERSION=0.4.2
|
||||
ARCH=$1
|
||||
ANDROID_DATA_FULLPATH=$(realpath ./AndroidData/)
|
||||
|
||||
cd data
|
||||
rm -f ../AndroidData/openttd-data-*.zip.xz ../AndroidData/openttd-data-*.zip
|
||||
zip -0 -r ../AndroidData/openttd-data-$VER.zip . && xz -8 ../AndroidData/openttd-data-$VER.zip
|
||||
# Base game data
|
||||
pushd ./data
|
||||
rm -f ${ANDROID_DATA_FULLPATH}/openttd-data-*.zip.xz ${ANDROID_DATA_FULLPATH}/openttd-data-*.zip
|
||||
|
||||
pushd ./baseset
|
||||
curl --fail-with-body https://cdn.openttd.org/opengfx-releases/${GFX_VERSION}/opengfx-${GFX_VERSION}-all.zip | jar xv
|
||||
curl --fail-with-body https://cdn.openttd.org/opensfx-releases/${SFX_VERSION}/opensfx-${SFX_VERSION}-all.zip | jar xv
|
||||
curl --fail-with-body https://cdn.openttd.org/openmsx-releases/${MSX_VERSION}/openmsx-${MSX_VERSION}-all.zip | jar xv
|
||||
tar xvf ./openmsx-${MSX_VERSION}.tar && rm ./openmsx-${MSX_VERSION}.tar
|
||||
popd
|
||||
|
||||
zip -0 -r ${ANDROID_DATA_FULLPATH}/openttd-data-$VER.zip ./ && xz -8 ${ANDROID_DATA_FULLPATH}/openttd-data-$VER.zip
|
||||
popd
|
||||
|
||||
# Timidity
|
||||
pushd ../../timidity/samples/
|
||||
rm -f ${ANDROID_DATA_FULLPATH}/timidity.zip.xz ${ANDROID_DATA_FULLPATH}/timidity.zip
|
||||
cp ./timidity.zip ${ANDROID_DATA_FULLPATH}/timidity.zip && xz -8 ${ANDROID_DATA_FULLPATH}/timidity.zip
|
||||
popd
|
||||
|
||||
# ICU
|
||||
# TODO handle versioning. Use Makefile var
|
||||
pushd ../../iconv/src/$ARCH/
|
||||
rm -f ${ANDROID_DATA_FULLPATH}/icudt62l.zip.xz ${ANDROID_DATA_FULLPATH}/icudt62l.zip
|
||||
zip -0 ${ANDROID_DATA_FULLPATH}/icudt62l.zip share/icu/62.1/icudt62l.dat && xz -8 ${ANDROID_DATA_FULLPATH}/icudt62l.zip
|
||||
popd
|
||||
|
||||
# Fonts
|
||||
pushd ../../freetype/
|
||||
rm -f ${ANDROID_DATA_FULLPATH}/openttd-fonts.zip.xz ${ANDROID_DATA_FULLPATH}/openttd-fonts.zip
|
||||
zip -0 -r ${ANDROID_DATA_FULLPATH}/openttd-fonts.zip ./fonts/ && xz -8 ${ANDROID_DATA_FULLPATH}/openttd-fonts.zip
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user