From 841edbe6fb10205b5f714a972b5448a37d09f272 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Wed, 17 Jun 2015 13:38:49 +0100 Subject: [PATCH] Ensure release files retain proper chmod status --- Gruntfile.js | 16 ++++++++++++++-- package.json | 3 ++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 131c377e4..522056a4b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -257,6 +257,7 @@ module.exports = function(grunt) { }, release: { files: [{ + mode: true, expand: true, src: [ '*.md', @@ -276,7 +277,17 @@ module.exports = function(grunt) { }] } }, - + chmod: { + options: { + mode: '755' + }, + release: { + // Target-specific file/dir lists and/or options go here. + src: [ + path.resolve('<%= paths.dist %>/node-red-<%= pkg.version %>/nodes/core/hardware/nrgpio*') + ] + } + }, compress: { release: { options: { @@ -300,6 +311,7 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-nodemon'); grunt.loadNpmTasks('grunt-contrib-compress'); grunt.loadNpmTasks('grunt-contrib-copy'); + grunt.loadNpmTasks('grunt-chmod'); grunt.registerMultiTask('attachCopyright', function() { var files = this.data.src; @@ -373,6 +385,6 @@ module.exports = function(grunt) { grunt.registerTask('release', 'Create distribution zip file', - ['build','clean:release','copy:release','compress:release']); + ['build','clean:release','copy:release','chmod:release','compress:release']); }; diff --git a/package.json b/package.json index dbcdf050e..3e32b2777 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "node-red", - "version" : "0.10.9", + "version" : "0.10.10", "description" : "A visual tool for wiring the Internet of Things", "homepage" : "http://nodered.org", "license" : "Apache-2.0", @@ -59,6 +59,7 @@ }, "devDependencies": { "grunt": "0.4.5", + "grunt-chmod": "1.0.3", "grunt-cli": "0.1.13", "grunt-concurrent":"1.0.1", "grunt-contrib-clean":"0.6.0",