mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure release files retain proper chmod status
This commit is contained in:
parent
2b9aca0c56
commit
841edbe6fb
16
Gruntfile.js
16
Gruntfile.js
@ -257,6 +257,7 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
release: {
|
release: {
|
||||||
files: [{
|
files: [{
|
||||||
|
mode: true,
|
||||||
expand: true,
|
expand: true,
|
||||||
src: [
|
src: [
|
||||||
'*.md',
|
'*.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: {
|
compress: {
|
||||||
release: {
|
release: {
|
||||||
options: {
|
options: {
|
||||||
@ -300,6 +311,7 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-nodemon');
|
grunt.loadNpmTasks('grunt-nodemon');
|
||||||
grunt.loadNpmTasks('grunt-contrib-compress');
|
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
|
grunt.loadNpmTasks('grunt-chmod');
|
||||||
|
|
||||||
grunt.registerMultiTask('attachCopyright', function() {
|
grunt.registerMultiTask('attachCopyright', function() {
|
||||||
var files = this.data.src;
|
var files = this.data.src;
|
||||||
@ -373,6 +385,6 @@ module.exports = function(grunt) {
|
|||||||
|
|
||||||
grunt.registerTask('release',
|
grunt.registerTask('release',
|
||||||
'Create distribution zip file',
|
'Create distribution zip file',
|
||||||
['build','clean:release','copy:release','compress:release']);
|
['build','clean:release','copy:release','chmod:release','compress:release']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red",
|
"name" : "node-red",
|
||||||
"version" : "0.10.9",
|
"version" : "0.10.10",
|
||||||
"description" : "A visual tool for wiring the Internet of Things",
|
"description" : "A visual tool for wiring the Internet of Things",
|
||||||
"homepage" : "http://nodered.org",
|
"homepage" : "http://nodered.org",
|
||||||
"license" : "Apache-2.0",
|
"license" : "Apache-2.0",
|
||||||
@ -59,6 +59,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"grunt": "0.4.5",
|
"grunt": "0.4.5",
|
||||||
|
"grunt-chmod": "1.0.3",
|
||||||
"grunt-cli": "0.1.13",
|
"grunt-cli": "0.1.13",
|
||||||
"grunt-concurrent":"1.0.1",
|
"grunt-concurrent":"1.0.1",
|
||||||
"grunt-contrib-clean":"0.6.0",
|
"grunt-contrib-clean":"0.6.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user