Ensure release files retain proper chmod status

This commit is contained in:
Nick O'Leary 2015-06-17 13:38:49 +01:00
parent 2b9aca0c56
commit 841edbe6fb
2 changed files with 16 additions and 3 deletions

View File

@ -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']);
};

View File

@ -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",