Skip to content

Commit

Permalink
Fix incorrect NW.js file permissions
Browse files Browse the repository at this point in the history
Resolve #210
  • Loading branch information
bastimeyer committed Dec 6, 2016
1 parent ebacba2 commit ad65661
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
15 changes: 12 additions & 3 deletions build/tasks/configs/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,24 @@ module.exports = {
},

osx64: {
before: [ "clean:release_osx64" ]
before: [ "clean:release_osx64" ],
after: [ "shell:permissions_osx64" ]
},

linux32: {
before: [ "clean:release_linux32" ],
after : [ "copy:linux32scripts", "copy:linux32icons" ]
after : [
"copy:linux32scripts",
"copy:linux32icons",
"shell:permissions_linux32"
]
},
linux64: {
before: [ "clean:release_linux64" ],
after : [ "copy:linux64scripts", "copy:linux64icons" ]
after : [
"copy:linux64scripts",
"copy:linux64icons",
"shell:permissions_linux64"
]
}
};
10 changes: 10 additions & 0 deletions build/tasks/configs/shell.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
module.exports = {
permissions_osx64: {
command: "chmod -R g=u,o=u,g-w,o-w <%= dir.releases %>/<%= package.name %>/osx64"
},
permissions_linux32: {
command: "chmod -R g=u,o=u,g-w,o-w <%= dir.releases %>/<%= package.name %>/linux32"
},
permissions_linux64: {
command: "chmod -R g=u,o=u,g-w,o-w <%= dir.releases %>/<%= package.name %>/linux64"
},

chocolatey: {
command: [
"cd <%= dir.package %>/chocolatey",
Expand Down

0 comments on commit ad65661

Please sign in to comment.