]> git.ktnx.net Git - icedeb.git/blobdiff - build
put content JS into a closure
[icedeb.git] / build
diff --git a/build b/build
index 91a8bc57374fa0518aae7b2ef36eb8463f3276da..08d261af14d288a2e1042282c06687c4d31819fe 100644 (file)
--- a/build
+++ b/build
@@ -5,6 +5,24 @@ set -u
 
 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
 
-zip -r $PKG.xpi chrome install* chrome.manifest README
+zip -r $PKG.xpi README TODO res \
+    icedeb.html icedeb.css icedeb.js icedeb-content.js icons manifest.json