Commit 26f32da1 authored by Dmitry Smirnov's avatar Dmitry Smirnov

Don't zip; touching "manifest.json" reloads extension in Firefox.

parent 609d09eb
......@@ -14,7 +14,6 @@ Vcs-Browser: https://salsa.debian.org/webext-team/tree-style-tab
Package: xul-ext-treestyletab
Architecture: all
Depends: ${misc:Depends}, ${xpi:Depends}
,zip
Recommends: ${xpi:Recommends}
,firefox (>= 60)
Provides: ${xpi:Provides}
......
......@@ -5,9 +5,7 @@ set -u
webext="tree-style-tab"
if [ "$1" = "configure" ]; then
rm -f /usr/share/webext/${webext}.zip
cd /usr/share/webext/${webext} \
&& zip --quiet -9 ../${webext}.zip -r .
touch /usr/share/webext/${webext}/manifest.json
fi
#DEBHELPER#
#!/bin/sh
set -e
set -u
webext="tree-style-tab"
case "$1" in
remove|purge)
rm -f /usr/share/webext/${webext}.zip
;;
esac
#DEBHELPER#
......@@ -20,7 +20,7 @@ override_dh_install:
override_dh_link: $(info :: ID=$(ID))
dh_link -v \
/usr/share/webext/$(DEB_SOURCE).zip /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/$(ID).xpi
/usr/share/webext/$(DEB_SOURCE) /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/$(ID)
override_dh_installchangelogs:
dh_installchangelogs debian/upstream/changelog.html debian/upstream/changelog
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment