nw.js icon indicating copy to clipboard operation
nw.js copied to clipboard

macOS Build Permission Problem from v0.62.1

Open brinsche-fkt42 opened this issue 2 years ago • 3 comments

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?

brinsche-fkt42 avatar May 19 '22 09:05 brinsche-fkt42

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.

alinalexandru avatar Jul 14 '22 14:07 alinalexandru

A workaround could be to chmod the NW.js files after they're moved. For example, chmod /path/to/nw/**/*

ayushmanchhabra avatar Aug 12 '22 21:08 ayushmanchhabra

@ayushmanchhabra the workaround didn't work for me. Is there any other way? Or more specific steps to fix the permission?

tarunj370 avatar Jul 31 '23 06:07 tarunj370