Construct 3 NW.js desktop app

  • I manually removed a few files from our releases that aren't needed for the purposes of Construct, including:

    • pnacl (Portable Native Client), a browser plugin that Construct doesn't use (and Chrome will remove themselves in future anyway), including the .nexe file
    • All locales other than en-US
    • The tools chromedriver, nwjs, payload (these are separate to dev tools and aren't generally needed in Construct)

    I did ask the NW.js developers for info about which files are essential, but they said to just use trial and error, and I've noticed the set of files changes sometimes between releases too. So basically you can find out which files are essential by deleting them and seeing if the app still starts! I'd watch out though since some files may be optional and could break features. For example the app may still start if you delete notification_helper, but then it seems likely notifications won't work any more. So it's worth doing a little research to try and figure out what the purpose of the file actually is, and if it doesn't sound important and the app starts without it then it can be removed.

  • Please note we will soon be moving the file system implementation in NW.js to be the same as the one used in Chrome. In theory this is just an internal change and nobody will notice. However NW.js will show the same file permission prompts as Chrome, unless you use NW.js 0.45.2 or newer, which has been updated to automatically approve them. So I'd advise any users of the NW.js desktop app update to 0.45.2+ so you don't get these prompts.

  • I'm a desktop user, and I just tried to switch to the new method described in the first post (latest nwjs plus construct package). It loads OK, but after around 30 seconds the application just closes with no warning. Anyone got any ideas what could be causing this? Thanks.

    EDIT: This seems to have been caused by following the recommendation and using the SDK version, the standard version has no issues

  • Why all these steps? Why not just build it and release a downloader to us?

  • I'm a desktop user, and I just tried to switch to the new method described in the first post (latest nwjs plus construct package). It loads OK, but after around 30 seconds the application just closes with no warning. Anyone got any ideas what could be causing this? Thanks.

    me also facing this issue. I also just tried this new method and application just closes with no warning.

  • > I'm a desktop user, and I just tried to switch to the new method described in the first post (latest nwjs plus construct package). It loads OK, but after around 30 seconds the application just closes with no warning. Anyone got any ideas what could be causing this? Thanks.

    me also facing this issue. I also just tried this new method and application just closes with no warning.

    Same thing :( but even with non-sdk it stops working after a short period of time.

    UPDATE: I downloaded older version of nwjs - nwjs-sdk-v0.44.6-win-x64 - and looks like it working Ok...

  • Same issue here. Closes after approx 30 seconds. Tested both versions.

  • The latest NWjs 0.45.5 release has several crash fixes, including worker mode fixes after launch. I'd recommend everyone to update to that version.

  • Still the same issue, construct 3 crashes back to desktop after about 20 to 30 seconds.

  • Still the same issue, construct 3 crashes back to desktop after about 20 to 30 seconds.

    Could you search for a log file and upload it? Usually located inside the same folder where the nw.exe is. I can reopen the GitHub issue and tell them that it's still crashing.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Sorry i,ve search for a log file but cant find it. looked in the same folder you suggested,but no log file is there.

  • TheRealDannyyy how do I revert to a previous NWJS with your fantastic launcher? I just updated in your launcher, but it crashes almost instantly.

  • TheRealDannyyy how do I revert to a previous NWJS with your fantastic launcher? I just updated in your launcher, but it crashes almost instantly.

    Wrong topic, next time please ask in my launcher topic.

    The only way to "revert" is to switch to the outdated official release build. Temporally solution could also be to just follow the steps from here and use a seperate NWjs setup, without the launcher.

    Also please provide crash logs or ways to reproduce if possible, so I can do a proper bug report.

  • I had the crash to on nw js v0.45, but on downgrading to nw js v0.44.6 it seems resolved!

  • I reverted back to NW.js 0.44.6 and it works fine.

Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)