Search code examples
javascriptnode-webkitnwjs

Loading compiled javascript in nw.js crashes app on macos


Ive built a nw.js app. it runs fine on both win and macos. on windows ive compiled the js as per documentation using nwjc and it works fine. Since confuscating with nwjc requires doing it per OS, ive done the same with the exact same js file on macos. however, it kills the app when i start it. I am a windows user, so mac is abit unfamiliar for me. I have read, googled and i'm at a loss. So heres my 2 questions:

  1. Is there a way i can see any crashlogs for nw.js on macos so i can further debug?
  2. if im completely unable to use compiled.js, do u have any alternative suggestions on how i can inject my js without it being visible for users of the app

I am using the latest nwjs sdk build 0.29.2.


Solution

  • This turned out to be an issue with the nw.js build in use. I tried nightly build 30, and its now working as intended with nwjc compiled js on macos.