[Android] HACK: Add Chrome Packaging in compile.sh
Jean-Baptiste Kempf
git at videolan.org
Tue Nov 24 13:41:05 CET 2015
vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Nov 24 13:38:24 2015 +0100| [5461448e15df2cdf6d0765b140453285b12c30ec] | committer: Jean-Baptiste Kempf
HACK: Add Chrome Packaging in compile.sh
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=5461448e15df2cdf6d0765b140453285b12c30ec
---
compile.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/compile.sh b/compile.sh
index ed6b580..0c02e42 100755
--- a/compile.sh
+++ b/compile.sh
@@ -217,3 +217,15 @@ if [ "$RUN" = 1 ]; then
adb shell am start -n org.videolan.vlc.debug/org.videolan.vlc.gui.MainActivity
fi
fi
+
+#########################
+# Chrome OS repackaging #
+#########################
+# You need to run the armv7 version first, then relaunch this script for x86
+if [ "$CHROME_OS" = 1 ]; then
+ unzip -o vlc-android/build/outputs/apk/VLC-Android-CHROME-*-ARMv7.apk lib/armeabi-v7a/libvlcjni.so
+ zip -rv vlc-android/build/outputs/apk/VLC-Android-CHROME-*-x86.apk lib/armeabi-v7a/libvlcjni.so
+ rm -rf lib/
+ apk_to_crx.py --zip vlc-android/build/outputs/apk/VLC-Android-CHROME-*-x86.apk --metadata vlc-android/flavors/chrome/VLC-Android-CHROME.crx.json
+ mv vlc-android/build/outputs/apk/VLC-Android-CHROME-*-x86.zip vlc-android/build/outputs/apk/VLC-Android-CHROME-ALL.zip
+fi
More information about the Android
mailing list