Add manual install steps for unsigned builds

This commit is contained in:
Oliver Blanthorn 2019-09-23 06:31:35 +01:00
parent 68452ff5c6
commit 67c2a9edc4
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
2 changed files with 8 additions and 0 deletions

4
scripts/get_id_from_xpi.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
temp=$(mktemp -d)
unzip -qq $1 -d $temp
jq '.applications.gecko.id' $temp/manifest.json | tr -d '"'

4
scripts/install.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
installdir=${1:-/usr/lib/firefox/browser/extensions}
xpi=web-ext-artifacts/$(ls -t web-ext-artifacts/ | head -n1)
install -Dm644 $xpi $installdir/$(scripts/get_id_from_xpi.sh $xpi).xpi