mirror of
https://github.com/izzy2lost/AM2R-Autopatcher-Android.git
synced 2026-06-19 01:20:10 -07:00
use sed for apktool editing
This commit is contained in:
-15
@@ -1,15 +0,0 @@
|
||||
!!brut.androlib.meta.MetaInfo
|
||||
apkFileName: AM2RWrapper.apk
|
||||
compressionType: false
|
||||
doNotCompress:
|
||||
- ogg
|
||||
- arsc
|
||||
isFrameworkApk: false
|
||||
packageInfo: null
|
||||
sdkInfo: null
|
||||
sharedLibrary: false
|
||||
sparseResources: false
|
||||
unknownFiles: {}
|
||||
usesFramework: null
|
||||
version: 2.3.4
|
||||
versionInfo: null
|
||||
+4
-5
@@ -81,7 +81,7 @@ cp -p data/android/AM2R.ini "${OUTPUT}"/
|
||||
cp data/files_to_copy/*.ogg "${OUTPUT}"/
|
||||
|
||||
echo ""
|
||||
echo "Install high quality in-game music? Increases filesize by 194 MB and may lag the game!"
|
||||
echo "Install high quality in-game music? Increases filesize by 230 MB and may lag the game!"
|
||||
echo ""
|
||||
echo "[y/n]"
|
||||
|
||||
@@ -113,13 +113,12 @@ rm temp.zip
|
||||
|
||||
echo "Packaging APK..."
|
||||
#decompile the apk
|
||||
apktool d -f data/android/AM2RWrapper.apk
|
||||
apktool d data/android/AM2RWrapper.apk
|
||||
#copy
|
||||
mv "${OUTPUT}" assets
|
||||
cp -Rp assets AM2RWrapper
|
||||
#supply an edited yaml thing to not compress ogg's
|
||||
wget https://github.com/Miepee/AM2R-Autopatcher-Android/raw/main/apktool.yml
|
||||
mv -f apktool.yml AM2RWrapper/apktool.yml
|
||||
#edited yaml thing to not compress ogg's
|
||||
sed -i "s/doNotCompress:/doNotCompress:\n- ogg/" AM2RWrapper/apktool.yml
|
||||
#build
|
||||
apktool b AM2RWrapper -o AM2R-"${VERSION}".apk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user