Add updater for Chrom* extension.

This commit is contained in:
ccd0 2014-04-03 14:03:05 -07:00
parent 45d3ea8cc8
commit 7f3d330ba4
6 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,6 @@
**ccd0**:
- Add updater for Chrom* extension.
### v1.4.4
*2014-04-03*

View File

@ -50,6 +50,7 @@ module.exports = (grunt) ->
crx:
files:
'builds/crx/manifest.json': 'src/General/meta/manifest.json'
'builds/updates.xml': 'src/General/meta/updates.xml'
'builds/crx/script.js': [
'src/General/meta/botproc.js'
'src/General/meta/banner.js'

View File

@ -15,6 +15,7 @@
"run_at": "document_start"
}],
"homepage_url": "https://github.com/ccd0/4chan-x",
"update_url": "https://github.com/ccd0/4chan-x/raw/master/builds/updates.xml",
"minimum_chrome_version": "31",
"permissions": [
"storage",

7
builds/updates.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='4chan X'>
<updatecheck codebase='https://github.com/ccd0/4chan-x/raw/master/builds/crx.crx' version='1.4.4' />
</app>
</gupdate>

View File

@ -15,6 +15,7 @@
"run_at": "document_start"
}],
"homepage_url": "<%= meta.page %>",
"update_url": "<%= meta.repo %>raw/master/builds/updates.xml",
"minimum_chrome_version": "<%= meta.min.chrome %>",
"permissions": [
"storage",

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<gupdate xmlns='http://www.google.com/update2/response' protocol='2.0'>
<app appid='<%= meta.name %>'>
<updatecheck codebase='<%= meta.repo %>raw/master/builds/crx.crx' version='<%= version %>' />
</app>
</gupdate>