Created
May 3, 2016 19:14
-
-
Save miketaylr/cfa9efa028f70feba585128c7025f4d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace this value with your add-on name | |
XPI=screenshots.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 | |
# List add-on files here | |
zip -r $XPI bootstrap.js \ | |
install.rdf \ | |
chrome.manifest \ | |
content \ | |
locale \ | |
icon.png \ | |
icon64.png \ | |
LICENSE.txt | |
-x *.DS_Store* | |
# Push the add-on to your device to test | |
adb push "$XPI" /sdcard/"$XPI" && \ | |
# Push an HTML page to link to add-on | |
adb push install.html /sdcard/install.html && \ | |
adb shell am start -a android.intent.action.VIEW \ | |
-c android.intent.category.DEFAULT \ | |
-d file:///mnt/sdcard/install.html \ | |
-n $ANDROID_APP_ID/.App && \ | |
echo Pushed $XPI to $ANDROID_APP_ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta name="viewport" content="width=device-width; user-scalable=0" /> | |
</head> | |
<body> | |
<p><a href="screenshots.xpi">Click here to install fennec-url-screenshots.xpi</a></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment