]> git.ktnx.net Git - icedeb.git/blobdiff - build
put content JS into a closure
[icedeb.git] / build
diff --git a/build b/build
index 0c8b3d6b7f8aee18d564d4d4ffe834797eb1e286..08d261af14d288a2e1042282c06687c4d31819fe 100644 (file)
--- a/build
+++ b/build
@@ -3,8 +3,26 @@
 set -e
 set -u
 
-export PKG=debian-bts@modsoftsys.com
+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