From bd82654538270f331f025449560fca9c404333bd Mon Sep 17 00:00:00 2001 From: Mottie Date: Mon, 28 Sep 2015 22:57:51 -0500 Subject: Add Chrome extension autoupdate --- Gruntfile.js | 15 +++++++++++++-- dist/chrome.crx | Bin 19508 -> 19534 bytes dist/chrome.zip | Bin 20541 -> 20567 bytes dist/chrome/manifest.json | 1 + dist/opera.nex | Bin 19508 -> 19534 bytes src/chrome/manifest.json | 1 + src/chrome/updates.xml | 6 ++++++ updates.xml | 6 ++++++ 8 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/chrome/updates.xml create mode 100644 updates.xml 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 index cd29b8b..ce6e4e2 100644 Binary files a/dist/chrome.crx and b/dist/chrome.crx differ diff --git a/dist/chrome.zip b/dist/chrome.zip index 0015a5e..0e74db4 100644 Binary files a/dist/chrome.zip and b/dist/chrome.zip differ 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 index cd29b8b..ce6e4e2 100644 Binary files a/dist/opera.nex and b/dist/opera.nex differ 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 @@ + + + + + + diff --git a/updates.xml b/updates.xml new file mode 100644 index 0000000..065d3ee --- /dev/null +++ b/updates.xml @@ -0,0 +1,6 @@ + + + + + + -- cgit v1.2.3