summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--chromium/manifest.json3
-rw-r--r--chromium/updates.xml6
3 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2e89928..7a05f61 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
NAME = simplyread
VERSION = 0.4
+chromium-updates.xml: chromium/updates.xml
+ sed "s/VERSION/$(VERSION)/g" < $< > $@
+
index.html: doap.ttl README webheader.html
echo making webpage
cat < webheader.html > $@
diff --git a/chromium/manifest.json b/chromium/manifest.json
index 321aff9..6b28f29 100644
--- a/chromium/manifest.json
+++ b/chromium/manifest.json
@@ -4,5 +4,6 @@
"background_page": "background.html",
"permissions": [ "tabs", "*://*/*" ],
"content_scripts": [{"matches": ["*://*/*"], "js": ["simplyread.js", "keybind.js"]}],
- "browser_action": { "default_icon": "icon.png" }
+ "browser_action": { "default_icon": "icon.png" },
+ "update_url": "http://njw.me.uk/software/simplyread/chromium-updates.xml"
}
diff --git a/chromium/updates.xml b/chromium/updates.xml
new file mode 100644
index 0000000..8dec4de
--- /dev/null
+++ b/chromium/updates.xml
@@ -0,0 +1,6 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
+ <app appid='apapoaenlmlncnnhbpdobjifmpjdabpn'>
+ <updatecheck codebase='http://njw.me.uk/software/simplyread/simplyread-VERSION.crx' version='VERSION' />
+ </app>
+</gupdate>