diff options
-rw-r--r-- | Gruntfile.js | 15 | ||||
-rw-r--r-- | dist/chrome.crx | bin | 19508 -> 19534 bytes | |||
-rw-r--r-- | dist/chrome.zip | bin | 20541 -> 20567 bytes | |||
-rw-r--r-- | dist/chrome/manifest.json | 1 | ||||
-rw-r--r-- | dist/opera.nex | bin | 19508 -> 19534 bytes | |||
-rw-r--r-- | src/chrome/manifest.json | 1 | ||||
-rw-r--r-- | src/chrome/updates.xml | 6 | ||||
-rw-r--r-- | updates.xml | 6 |
8 files changed, 27 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index eb0bfee..f0276c5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -84,7 +84,8 @@ module.exports = function( grunt ) { src : [ 'dist/**/*', config.indexHtml, - '*.min.js' + '*.min.js', + 'updates.xml' ] }, cleanup : { @@ -119,6 +120,14 @@ module.exports = function( grunt ) { src : [ '_locales/**/*.json' ], dest : 'dist/chrome' }, + chromeUpdate : { + files : [{ + expand : true, + flatten : true, + src : [ 'src/chrome/updates.xml' ], + dest : './' + }] + }, // Opera can use chrome.crx; just renamed opera : { src : 'dist/chrome.crx', @@ -290,6 +299,7 @@ module.exports = function( grunt ) { 'bookmarklet-create', 'copy:chrome', 'copy:chromeLocales', + 'copy:chromeUpdate', 'jshint', 'jasmine', 'clean:cleanup' @@ -351,7 +361,8 @@ module.exports = function( grunt ) { projectFile = [ 'dist/chrome/manifest.json', 'dist/chrome/printliminator.js', - 'dist/bookmarklet/printliminator.js' + 'dist/bookmarklet/printliminator.js', + 'updates.xml' ], len = projectFile.length; for ( i = 0; i < len; i++ ) { diff --git a/dist/chrome.crx b/dist/chrome.crx Binary files differindex cd29b8b..ce6e4e2 100644 --- a/dist/chrome.crx +++ b/dist/chrome.crx diff --git a/dist/chrome.zip b/dist/chrome.zip Binary files differindex 0015a5e..0e74db4 100644 --- a/dist/chrome.zip +++ b/dist/chrome.zip diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index 0675bbd..f131a36 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -5,6 +5,7 @@ "author": "Chris Coyier", "description": "__MSG_printliminatorDescription__", "homepage_url": "https://github.com/CSS-Tricks/The-Printliminator", + "update_url": "https://css-tricks.github.io/The-Printliminator/updates.xml", "default_locale": "en", "icons": { "16": "icon16.png", diff --git a/dist/opera.nex b/dist/opera.nex Binary files differindex cd29b8b..ce6e4e2 100644 --- a/dist/opera.nex +++ b/dist/opera.nex diff --git a/src/chrome/manifest.json b/src/chrome/manifest.json index 0675bbd..f131a36 100644 --- a/src/chrome/manifest.json +++ b/src/chrome/manifest.json @@ -5,6 +5,7 @@ "author": "Chris Coyier", "description": "__MSG_printliminatorDescription__", "homepage_url": "https://github.com/CSS-Tricks/The-Printliminator", + "update_url": "https://css-tricks.github.io/The-Printliminator/updates.xml", "default_locale": "en", "icons": { "16": "icon16.png", diff --git a/src/chrome/updates.xml b/src/chrome/updates.xml new file mode 100644 index 0000000..cfabf36 --- /dev/null +++ b/src/chrome/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='nklechikgnfoonbfmcalddjcpmcmgapf'> + <updatecheck codebase='http://css-tricks.github.io/The-Printliminator/dist/chrome.crx' version='{version}' /> + </app> +</gupdate> diff --git a/updates.xml b/updates.xml new file mode 100644 index 0000000..065d3ee --- /dev/null +++ b/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='nklechikgnfoonbfmcalddjcpmcmgapf'> + <updatecheck codebase='http://css-tricks.github.io/The-Printliminator/dist/chrome.crx' version='4.0.2' /> + </app> +</gupdate> |