Debian: updated postinstall script
This commit is contained in:
@@ -20,13 +20,13 @@ AppVersionName="19.12.24"
|
||||
# You can specify Google Play expansion files in the form 'obb:main.12345' or 'obb:patch.12345' where 12345 is the app version for obb file
|
||||
# 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="!!Library mapping|bin-map.zip^!!Data files|:data.tar.gz:data-2.tgz^!!Data files|:DroidSansMono.ttf:DroidSansMono.ttf^!!Postinstall script|:postinstall.sh:postinstall.sh^!!Loading image|:loading.gif:loading.gif"
|
||||
AppDataDownloadUrl="!!Library mapping|bin-map.zip^!!Data files|:data.tar.gz:data-2.tgz^!!Data files|:DroidSansMono.ttf:DroidSansMono.ttf^!!Postinstall script|:postinstall.sh:postinstall.sh^!!Loading image|:loading.gif:loading.gif^!!System overlay|:overlay.tar.xz:overlay-<ARCH>.tar.xz"
|
||||
|
||||
# Reset SDL config when updating application to the new version (y) / (n)
|
||||
ResetSdlConfigForThisVersion=y
|
||||
|
||||
# Delete application data files when upgrading (specify file/dir paths separated by spaces)
|
||||
DeleteFilesOnUpgrade="%"
|
||||
DeleteFilesOnUpgrade="busybox usr tmp pulseaudio.conf libsdl-DownloadFinished-0.flag libsdl-DownloadFinished-1.flag libsdl-DownloadFinished-2.flag libsdl-DownloadFinished-3.flag libsdl-DownloadFinished-4.flag libsdl-DownloadFinished-5.flag"
|
||||
|
||||
# Here you may type readme text, which will be shown during startup. Format is:
|
||||
# Text in English, use \\\\n to separate lines (that's four backslashes)^de:Text in Deutsch^ru:Text in Russian^button:Button that will open some URL:http://url-to-open/
|
||||
|
||||
Binary file not shown.
@@ -1,40 +1,13 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
#OBB_VERSION=191224
|
||||
OBB_VERSION=$ANDROID_PACKAGE_VERSION_CODE
|
||||
|
||||
echo "Extracting data files"
|
||||
cd $SECURE_STORAGE_DIR
|
||||
./busybox tar xzf $UNSECURE_STORAGE_DIR/data-1.tar.gz
|
||||
rm -f $UNSECURE_STORAGE_DIR/data-1.tar.gz
|
||||
ARCH=`getprop ro.product.cpu.abi`
|
||||
echo "Detected architecture $ARCH"
|
||||
# We only support armeabi-v7a and x86
|
||||
case $ARCH in
|
||||
armeabi-v7a)
|
||||
;;
|
||||
x86)
|
||||
;;
|
||||
arm64-v8a)
|
||||
ARCH=armeabi-v7a
|
||||
;;
|
||||
arm64_v8a)
|
||||
ARCH=armeabi-v7a
|
||||
;;
|
||||
x86_64)
|
||||
ARCH=x86
|
||||
;;
|
||||
x86-64)
|
||||
ARCH=x86
|
||||
;;
|
||||
*)
|
||||
echo "=== ERROR ERROR ERROR ==="
|
||||
echo "Unsupported architecture: $ARCH"
|
||||
sleep 10000
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
echo "Copying files for architecture $ARCH"
|
||||
./busybox cp -af img-$ARCH/. img/
|
||||
echo "Removing files for other architectures"
|
||||
./busybox rm -rf img-armeabi-v7a img-x86
|
||||
./busybox tar xvJf $ANDROID_OBB_DIR/main.$OBB_VERSION.$ANDROID_PACKAGE_NAME.obb
|
||||
echo "Extracting overlay data files"
|
||||
./busybox tar xvJf $DATADIR/overlay.tar.xz
|
||||
cd $SECURE_STORAGE_DIR/img
|
||||
echo "Installation path: $SECURE_STORAGE_DIR/img"
|
||||
./postinstall.sh
|
||||
|
||||
Reference in New Issue
Block a user