зеркало из https://github.com/mozilla/janus-addon.git
21 строка
607 B
Bash
Executable File
21 строка
607 B
Bash
Executable File
#!/bin/bash
|
|
|
|
XPI=janus.xpi
|
|
|
|
# Replace this value to push to different release channels.
|
|
# Nightly = org.mozilla.fennec
|
|
# Aurora = org.mozilla.fennec_aurora
|
|
# Beta = org.mozilla.firefox_beta
|
|
# Release = org.mozilla.firefox
|
|
ANDROID_APP_ID=org.mozilla.fennec
|
|
|
|
cfx xpi --templatedir template
|
|
|
|
# Push the add-on to your device to test
|
|
adb push "$XPI" /sdcard/"$XPI" && \
|
|
adb shell am start -a android.intent.action.VIEW \
|
|
-c android.intent.category.DEFAULT \
|
|
-d file:///mnt/sdcard/"$XPI" \
|
|
-n $ANDROID_APP_ID/.App && \
|
|
echo Pushed $XPI to $ANDROID_APP_ID
|