-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild
More file actions
executable file
·26 lines (22 loc) · 754 Bytes
/
Copy pathbuild
File metadata and controls
executable file
·26 lines (22 loc) · 754 Bytes
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
#!/bin/bash
XPI=stayFocused.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_$USER
# List add-on files here
zip -r $XPI background.js \
manifest.json \
icons \
options \
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