summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-11 19:46:20 +0000
committerNick White <git@njw.me.uk>2010-11-11 19:46:20 +0000
commitcf8c1d39eb4d2ccd8cb5dfbe7931bc2aa116a3c7 (patch)
tree7cab2d7f3bdf31b01f8b66eff6a1132247a3d32d /Makefile
parent6db0cdc5206417ad9f19c3b4a8422fe268957cd0 (diff)
Add basic chromium extension
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 53d7ec6..aee2b52 100644
--- a/Makefile
+++ b/Makefile
@@ -35,5 +35,16 @@ xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/re
@rm -rf gecko-build
@echo $(NAME)-$(VERSION).xpi $(NAME)-$(VERSION).xpi.sig
-.PHONY: dist xpi
+crx: readable.js chromium/icon.png chromium/manifest.json chromium/background.html
+ @rm -rf chromium-build
+ @mkdir chromium-build
+ @cp COPYING readable.js chromium/icon.png chromium/background.html chromium-build/
+ @sed "s/VERSION/$(VERSION)/g" < chromium/manifest.json > chromium-build/manifest.json
+ @chromium-browser --pack-extension=chromium-build
+ @mv chromium-build.crx $(NAME)-$(VERSION).crx
+ @rm -r chromium-build chromium-build.pem
+ @gpg -b < $(NAME)-$(VERSION).crx > $(NAME)-$(VERSION).crx.sig
+ @echo $(NAME)-$(VERSION).crx $(NAME)-$(VERSION).crx.sig
+
+.PHONY: dist xpi crx
.SUFFIXES: ttl html