diff options
Diffstat (limited to 'android/apk/make-unsigned-apk.sh')
-rwxr-xr-x | android/apk/make-unsigned-apk.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/android/apk/make-unsigned-apk.sh b/android/apk/make-unsigned-apk.sh new file mode 100755 index 000000000..f6a2e9739 --- /dev/null +++ b/android/apk/make-unsigned-apk.sh @@ -0,0 +1,21 @@ +#!/bin/sh -e + +S=`dirname "$0"` +ANDROID_ABI=$1 +STRIP=$2 +ZIP=$3 +UNSIGNED_APK=$4 +LIBMPD_SO=$5 +CLASSES_DEX=$6 +RESOURCES_APK=$7 +D=`dirname "$UNSIGNED_APK"` + +rm -rf "$D/apk" +mkdir -p "$D/apk/lib/$ANDROID_ABI" + +"$STRIP" "$LIBMPD_SO" -o "$D/apk/lib/$ANDROID_ABI/`basename $LIBMPD_SO`" +cp "$CLASSES_DEX" "$D/apk/" +cp "$RESOURCES_APK" "$UNSIGNED_APK" + +cd "$D/apk" +exec zip -q -r "../`basename $UNSIGNED_APK`" . |