Code Monkey home page Code Monkey logo

Comments (7)

micc83 avatar micc83 commented on May 12, 2024

Hello @kthornbloom ,

I'm sorry but Nuwk hasn't been updated to work with NW.js so it's still looking for node-webkit. Hopefully I should be able to fix it by the end of the month, in the while you could give a look on the source code of Nuwk!.

  • Right click on the Nuwk! file

  • Clic on "Show Package Content"

  • Open Content/Resources/app.nw folder

  • Edit js/model.js file row 11accordingly

    nwPath : '/Applications/node-webkit.app',
    

I'm not sure it will work but it's worth a try.
Alex

from nuwk.

kthornbloom avatar kthornbloom commented on May 12, 2024

Thanks for the quick reply, Alex! To give you an update- your suggestion worked to get nuwk to see nwjs.app. I created a new project, put my project files in the "app" folder and hit Build Project.

Unfortunately after building, an error message says it can't be opened because it may be damaged or incomplete. Am I supposed to zip the files up first or anything like that?

from nuwk.

micc83 avatar micc83 commented on May 12, 2024

Nope, the building process SHOULD be completely automated. One thing, when you say "I selected the folder where my files reside" what do you mean?
Nuwk create its custom folder structure for projects. Try to build a new project using Nuwk and build it. If it works all you have to do is to move your project files inside the proper folder created by Nuwk.

from nuwk.

kthornbloom avatar kthornbloom commented on May 12, 2024

Thanks, I tried that and although it says it was successful, the app won't run due to being 'damaged'. It's really too bad! Nuwk seems to be the easiest method I've found so far.

from nuwk.

micc83 avatar micc83 commented on May 12, 2024

If you are willing to give it another try. Open the Info.plist file within the Resources folder and edit it as follow:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>BuildMachineOSBuild</key>
  <string>12C3006</string>
  <key>CFBundleDevelopmentRegion</key>
  <string>en</string>
  <key>CFBundleDisplayName</key>
  <string>{{name}}</string>
  <key>CFBundleExecutable</key>
  <string>nwjs</string>
  <key>CFBundleIconFile</key>
  <string>nw.icns</string>
  <key>CFBundleIdentifier</key>
  <string>io.nwjs.nw</string>
  <key>CFBundleInfoDictionaryVersion</key>
  <string>6.0</string>
  <key>CFBundleName</key>
  <string>{{name}}</string>
  <key>CFBundlePackageType</key>
  <string>APPL</string>
  <key>CFBundleShortVersionString</key>
  <string>{{version}}</string>
  <key>DTSDKBuild</key>
  <string>11E52</string>
  <key>DTSDKName</key>
  <string>macosx10.7</string>
  <key>DTXcode</key>
  <string>0452</string>
  <key>DTXcodeBuild</key>
  <string>4G2008a</string>
  <key>LSFileQuarantineEnabled</key>
  <true/>
  <key>LSMinimumSystemVersion</key>
  <string>10.6.0</string>
  <key>NSPrincipalClass</key>
  <string>NSApplication</string>
  <key>NSSupportsAutomaticGraphicsSwitching</key>
  <true/>
  <key>SCMRevision</key>
  <string>239963</string>
</dict>
</plist>

from nuwk.

kthornbloom avatar kthornbloom commented on May 12, 2024

HEY! It works. Thanks a lot man.

from nuwk.

micc83 avatar micc83 commented on May 12, 2024

Great, you saved me the time to test it :)
Il 02/mar/2015 18:04 "Kevin Thornbloom" [email protected] ha
scritto:

HEY! It works. Thanks a lot man.


Reply to this email directly or view it on GitHub
#9 (comment).

from nuwk.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.