mirror of
https://github.com/izzy2lost/AM2R-Autopatcher-Android.git
synced 2026-06-19 01:20:10 -07:00
use aapt instead of aapt2 if it doesn't exist.
This commit is contained in:
+6
-1
@@ -124,7 +124,12 @@ cp -Rp assets AM2RWrapper
|
||||
echo "Editing apktool.yml..."
|
||||
sed -i "s/doNotCompress:/doNotCompress:\n- ogg/" AM2RWrapper/apktool.yml
|
||||
#build
|
||||
apkmod -r -i AM2RWrapper -o AM2R-"${VERSION}".apk
|
||||
# check if aapt2 exists, if not use aapt instead
|
||||
if [ -f /usr/bin/aapt2 ]; then
|
||||
apkmod -r -i AM2RWrapper -o AM2R-"${VERSION}".apk
|
||||
else
|
||||
apkmod -a -r -i AM2RWrapper -o AM2R-"${VERSION}".apk
|
||||
fi
|
||||
#Sign apk
|
||||
apkmod -s -i AM2R-"${VERSION}".apk -o AM2R-"${VERSION}"-signed.apk
|
||||
|
||||
|
||||
Reference in New Issue
Block a user