Commit 5461448e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

HACK: Add Chrome Packaging in compile.sh

parent 8a405537
...@@ -217,3 +217,15 @@ if [ "$RUN" = 1 ]; then ...@@ -217,3 +217,15 @@ if [ "$RUN" = 1 ]; then
adb shell am start -n org.videolan.vlc.debug/org.videolan.vlc.gui.MainActivity adb shell am start -n org.videolan.vlc.debug/org.videolan.vlc.gui.MainActivity
fi fi
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment