nw.js
nw.js copied to clipboard
macOS Build Permission Problem from v0.62.1
From version 0.62.1 the permissions inside the nwjs.app seem to have changed, in earlier versions the "nwjs Framework" and the libnode.dylib etc have staff/everyone read permissions set, after version 0.62.1 the read permissions are missing.
I noticed this because I have an installer .pkg that moves the .app into the /Applications folder but it doesn't launch afterwards I guess because the app is owned by root then?
Did the permissions change on purpose or is this a bug?
On linux the issue starts with 0.63.1.
I have compared https://dl.nwjs.io/v0.63.1/nwjs-v0.63.1-linux-x64.tar.gz with https://dl.nwjs.io/v0.63.0/nwjs-v0.63.0-linux-x64.tar.gz.
A haven't found anything in the code by comparing the diff between 0.63.1 and 0.63.0.
I think it has to do with the build sistem, that is creating the files owned by root with 600
permissions.
A workaround could be to chmod the NW.js files after they're moved. For example, chmod /path/to/nw/**/*
@ayushmanchhabra the workaround didn't work for me. Is there any other way? Or more specific steps to fix the permission?