set -e
set -u
-export PKG=icedeb@modsoftsys.com-uuid
+export PKG=icedeb
+
+btn2png() {
+ local tag="$1"
+ local btn="${2:-$tag}"
+
+ xcf2png -o "chrome/content/$PKG-$btn.png" res/button-bts.xcf "base" "$tag small" "$tag big"
+}
+
+xcf2png -o "icons/icedeb-addon.png" res/icon.xcf -f -T
+
+btn2png bts
+btn2png pts
+btn2png deb
+btn2png ML ml
+btn2png DD ddpo
+btn2png buildd
+btn2png security
[ ! -e $PKG.xpi ] || rm $PKG.xpi
-jar -v -M -c -f $PKG.xpi chrome install* chrome.manifest
+zip -r $PKG.xpi README TODO res \
+ icedeb.html icedeb.css icedeb.js icedeb-content.js icons manifest.json