NW.js Mac Export

0 favourites
  • 13 posts
  • Hello everyone,

    I've currently tried to export my Construct 3 game with NW.js for Windows and Mac. The Windows version runs without a problem but the Mac version doesn't. On double clicking on the version this Pop-Up is shown: "The program cannot be executed". I've already authorized MacOS to open software from unknown developers.

    Does anyone know about this problem?

    Max

  • Hi Max,

    Just tried with my project and exported to Mac64 using latest Chromium (as per exporter). Used all default options ticked.

    After also popping up with unidentified developer, I went to system prefs said open anyway, typed in password and it opened.

    I think there is another problem somewhere perhaps.

  • I've exported it without compressing my script and assets and now it actually works...

  • I've exported it without compressing my script and assets and now it actually works...

    Hi maXimum7 and Havok

    I'm also trying to make a solid MacOSX release of my project with NW.js. I have no trouble with the export, but a lot with the paths of imported files.

    I you're more advanced than me about this, could you please help me ?

    Thanks in advance.

    Mat

  • All the files will be bundled (added to your project folder when you export). It will be contained within the NW.JS file. You should have no imported file issue unless you are specifically referencing them from outside for some other reason.

  • All the files will be bundled (added to your project folder when you export). It will be contained within the NW.JS file. You should have no imported file issue unless you are specifically referencing them from outside for some other reason.

    Hi

    I need imported files because I need the user of my app to be able to open some embedded pdf files on his computer. It's the core of my project to give access to hundreds of pdf files through an user friendly interface.

  • What exactly is the issue you are having with the external files?

    And how have you set it up.

    Post your file or screenshot it.

  • Regarding mac and linux exports, I made a habit to take a fresh node webkit from nwjs.io/downloads/ (should be the same version used with construct), deleting just its resource folder and replacing it with the one from the construct export on the system the export is for. Copying mac files around in windows voids the executable rights and who knows what else. I never experienced any problems after doing it that way.

  • Havok :

    I'm trying to use the nwjs 'Run ' command to simply launch a pdf file with the default pdf reader of the system.

    I'm giving the NWJS.AppFolder argument and then the filename and it works like a charm on Windows.

    On the other hand, the Macintosh doesn't seem to find this file. The path given by AppFolder is way too deep.

    Here you can find a dummy project about that :

    dropbox.com/s

    m50yil3qihx1emq/dummynw.c3p?dl=0

    Cavaron :

    I tried what you suggest and it doesn't work better. The app itself is working fine on my mac, except I need to sign it with a certificate to distribute it. The problem is when it comes to access to files.

    Cheers and thanks guys for trying to help me !

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Havok

    For testing purposes, I also manually entered a valid path and file name in the NWJS run command.

    I tested this path with the "Go to folder" function of the MacOS Finder and it goes straight to the file.

    Nonetheless, it will not work with NW.js

    Cheers

  • Hmmm... have you tried to add the Mac platform above instead of the Else for testing purposes?

  • No, but I can see by looking in the log that it goes by this 'else'.

  • Hi again,

    Did you managed to use 'Run' command with files on macs on your previous projects ? I'm really struggling with this issue now, and panic mode is very close to activation.

    Your help would be really welcome !

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