From 54b6b57deb13ddfd731981ee8c87a83cace075df Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 21 Nov 2017 05:26:30 +0100 Subject: [PATCH] aapt&ecj: Use jar instead of zip --- packages/aapt/build.sh | 2 +- packages/ecj/build.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/aapt/build.sh b/packages/aapt/build.sh index 2aecd7f4b..9dbe66a23 100644 --- a/packages/aapt/build.sh +++ b/packages/aapt/build.sh @@ -301,5 +301,5 @@ termux_step_make_install () { cp $ANDROID_HOME/platforms/android-27/android.jar . unzip -q android.jar mkdir -p $TERMUX_PREFIX/share/aapt - zip -q $TERMUX_PREFIX/share/aapt/android.jar AndroidManifest.xml resources.arsc + jar cfM $TERMUX_PREFIX/share/aapt/android.jar AndroidManifest.xml resources.arsc } diff --git a/packages/ecj/build.sh b/packages/ecj/build.sh index 1353dcafe..db2a98789 100755 --- a/packages/ecj/build.sh +++ b/packages/ecj/build.sh @@ -31,7 +31,7 @@ termux_step_make () { cp $ANDROID_HOME/platforms/android-27/android.jar . unzip -q android.jar rm -Rf android.jar resources.arsc res assets - zip -q -r android.jar . + jar cfM android.jar . cp $TERMUX_PKG_TMPDIR/android-jar/android.jar $TERMUX_PREFIX/share/java/android.jar @@ -41,7 +41,7 @@ termux_step_make () { cp $ANDROID_HOME/platforms/android-16/android.jar android.jar unzip -q android.jar rm -Rf android.jar resources.arsc res assets - zip -q -r android-16.jar . + jar cfM android-16.jar . cp $TERMUX_PKG_TMPDIR/android-jar/android-16.jar $TERMUX_PREFIX/share/java/ rm -Rf $TERMUX_PREFIX/bin/javac