diff options
author | Mottie <wowmotty@gmail.com> | 2015-09-29 06:57:51 +0300 |
---|---|---|
committer | Mottie <wowmotty@gmail.com> | 2015-09-29 06:57:51 +0300 |
commit | bd82654538270f331f025449560fca9c404333bd (patch) | |
tree | e173876488907f9e297e2065d04d763998412157 /Gruntfile.js | |
parent | 088e13bf113837fa227efb949c72d65ebfda6097 (diff) |
Add Chrome extension autoupdatev4.0.2
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 15 |
1 files changed, 13 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++ ) { |