-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild
executable file
·29 lines (25 loc) · 837 Bytes
/
build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
# Replace this value with your add-on name
XPI=homefeeds.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.firefox
# List add-on files here
zip -r $XPI bootstrap.js \
install.rdf \
chrome.manifest \
content \
skin \
locale \
README.md \
-x *.DS_Store*
# 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