Refrain from copying update files for -noupdate channel rather than deleting them.

This commit is contained in:
ccd0 2016-04-09 22:30:22 -07:00
parent d08d69a9db
commit 0839451507

View File

@ -87,10 +87,12 @@ module.exports = (grunt) ->
src: 'testbuilds/<%= pkg.name %>-noupdate.crx.zip' src: 'testbuilds/<%= pkg.name %>-noupdate.crx.zip'
dest: 'testbuilds/<%= pkg.name %>.zip' dest: 'testbuilds/<%= pkg.name %>.zip'
builds: builds:
src: ['testbuilds/*.js', 'testbuilds/*.crx', 'testbuilds/*.xml', 'testbuilds/<%= pkg.name %>.zip'] cwd: 'testbuilds/'
src: ['*.js', '*.crx', '*.xml', '<%= pkg.name %>.zip']
dest: 'builds/' dest: 'builds/'
expand: true expand: true
flatten: true filter: (src) ->
not /-noupdate\.(xml|meta\.js)$/.test src
install: install:
files: if grunt.file.exists('install.json') then grunt.file.readJSON('install.json') else [] files: if grunt.file.exists('install.json') then grunt.file.readJSON('install.json') else []
web: web:
@ -217,8 +219,6 @@ module.exports = (grunt) ->
builds: 'builds' builds: 'builds'
testbuilds: 'testbuilds' testbuilds: 'testbuilds'
tmp: 'tmp' tmp: 'tmp'
tmpcrx: 'testbuilds/updates-noupdate.xml'
tmpuserscript: 'testbuilds/<%= pkg.name %>-noupdate.meta.js'
require('load-grunt-tasks') grunt require('load-grunt-tasks') grunt
@ -259,7 +259,6 @@ module.exports = (grunt) ->
'set-channel:-noupdate' 'set-channel:-noupdate'
'build-crx-channel' 'build-crx-channel'
'copy:zip' 'copy:zip'
'clean:tmpcrx'
] ]
grunt.registerTask 'zip-crx', 'Pack CRX contents in ZIP file', -> grunt.registerTask 'zip-crx', 'Pack CRX contents in ZIP file', ->
@ -303,7 +302,6 @@ module.exports = (grunt) ->
'build-userscript-channel' 'build-userscript-channel'
'set-channel:-noupdate' 'set-channel:-noupdate'
'build-userscript-channel' 'build-userscript-channel'
'clean:tmpuserscript'
'copy:install' 'copy:install'
] ]