evshiron / nwjs-builder-phoenix

MIT License
288 stars 77 forks source link

Copied files on Linux don't preserve permissions #83

Open sparkyb opened 7 years ago

sparkyb commented 7 years ago

I have some shell scripts I want to distribute along with my app (I run the NW.js app through a shell script to pass certain command-line flags that it is too late to do inside the app). When I build the app with nwjs-builder-phoenix, the shell scripts no longer have the executable flag when copied into the dist directory. File permissions should be preserved.

evshiron commented 7 years ago

Will look into it.

maltheism commented 7 years ago

@evshiron Issue happens on macOS as well.

I have a secondary app (built with Swift using Xcode) and I package it inside my nw.js app. The secondary app will not launch (after using nwjs-builder-phoenix) because permissions are not preserved. After using nwjs-builder-phoenix I have to run the command: chmod +x SecondaryApp.app/Contents/MacOS/* and everything will be fine.