summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2010-11-13 18:32:06 +0000
committerNick White <git@njw.me.uk>2010-11-13 18:32:06 +0000
commit6184d6bdac39e3a1f2e72ce180db40cb896724cf (patch)
tree41eb1e1d51b2e2609565729cb3ec0d597474aae0
parentbb1b6e05bc4d22192a6991d0b510539a18325bf1 (diff)
Use svg for icon
-rw-r--r--Makefile12
-rw-r--r--TODO1
-rw-r--r--chromium/icon.pngbin388 -> 0 bytes
-rw-r--r--chromium/icon.svg5
-rw-r--r--gecko/chrome/content/icon.pngbin388 -> 0 bytes
-rw-r--r--gecko/chrome/content/icon.svg5
6 files changed, 17 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 5173597..026015b 100644
--- a/Makefile
+++ b/Makefile
@@ -25,22 +25,24 @@ dist:
@ln -sf $(NAME)-$(VERSION).tar.bz2.sig latest.tar.bz2.sig
@echo $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).tar.bz2.sig
-xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul gecko/chrome/content/icon.png
+xpi: readable.js gecko/install.rdf gecko/chrome.manifest gecko/chrome/content/readable.xul gecko/chrome/content/icon.svg
@rm -rf $(NAME)-$(VERSION).xpi gecko-build
@mkdir -p gecko-build/chrome/content
@cp COPYING gecko/chrome.manifest gecko-build/
- @cp gecko/chrome/content/readable.xul gecko/chrome/content/icon.png gecko-build/chrome/content/
+ @cp gecko/chrome/content/readable.xul gecko-build/chrome/content/
@cp readable.js gecko-build/chrome/content/readable.js
+ @rsvg gecko/chrome/content/icon.svg gecko-build/chrome/content/icon.png
@sed "s/VERSION/$(VERSION)/g" < gecko/install.rdf > gecko-build/install.rdf
@cd gecko-build; zip -r ../$(NAME)-$(VERSION).xpi . 1>/dev/null
@gpg -b < $(NAME)-$(VERSION).xpi > $(NAME)-$(VERSION).xpi.sig
@rm -rf gecko-build
@echo $(NAME)-$(VERSION).xpi $(NAME)-$(VERSION).xpi.sig
-crx: readable.js chromium/icon.png chromium/manifest.json chromium/background.html
+crx: readable.js chromium/icon.svg 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/
+ @cp COPYING readable.js chromium/background.html chromium-build/
+ @rsvg chromium/icon.svg chromium-build/icon.png
@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
@@ -49,4 +51,4 @@ crx: readable.js chromium/icon.png chromium/manifest.json chromium/background.ht
@echo $(NAME)-$(VERSION).crx $(NAME)-$(VERSION).crx.sig
.PHONY: dist xpi crx
-.SUFFIXES: ttl html
+.SUFFIXES: ttl html png svg
diff --git a/TODO b/TODO
index caca879..d5a07eb 100644
--- a/TODO
+++ b/TODO
@@ -7,5 +7,4 @@ chromium extension http://code.google.com/chrome/extensions/index.html
use a simple script to create crx rather than chromium-browser
handle signing extension properly
epiphany extension http://projects.gnome.org/epiphany/extensions
-create icon with imagemagick at compile time
make tests, which process sample html files and check the output
diff --git a/chromium/icon.png b/chromium/icon.png
deleted file mode 100644
index 5470e39..0000000
--- a/chromium/icon.png
+++ /dev/null
Binary files differ
diff --git a/chromium/icon.svg b/chromium/icon.svg
new file mode 100644
index 0000000..c222c9f
--- /dev/null
+++ b/chromium/icon.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="19" height="19">
+ <circle cx="9.5" cy="9.5" r="9.5" fill="white"/>
+ <text x="5" y="15" font-size="18" font-family="sans">r</text>
+</svg>
diff --git a/gecko/chrome/content/icon.png b/gecko/chrome/content/icon.png
deleted file mode 100644
index 5470e39..0000000
--- a/gecko/chrome/content/icon.png
+++ /dev/null
Binary files differ
diff --git a/gecko/chrome/content/icon.svg b/gecko/chrome/content/icon.svg
new file mode 100644
index 0000000..c222c9f
--- /dev/null
+++ b/gecko/chrome/content/icon.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="19" height="19">
+ <circle cx="9.5" cy="9.5" r="9.5" fill="white"/>
+ <text x="5" y="15" font-size="18" font-family="sans">r</text>
+</svg>