micc83 / Nuwk

Nuwk! makes it easy to create Mac Applications based on node-webkit, simplifying testing and building procedures. It takes care of creating the executable, attaching the app icon and configuring the plist file accordingly.
https://micc83.github.io/nuwk-doc/
106 stars 17 forks source link

"Cannot find node-webkit in your Applications folder" #9

Closed kthornbloom closed 9 years ago

kthornbloom commented 9 years ago

Hi there! I was really excited to find Nuwk, but couldn't get it running. I have both nw.js and nuwk in my applications folder, but when I run nuwk, it gives an orange error message across the top saying "Cannot find node-webkit in your Applications folder". Any clues?

Running osx 10.9.5

micc83 commented 9 years ago

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!.

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

kthornbloom commented 9 years ago

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?

micc83 commented 9 years ago

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.

kthornbloom commented 9 years ago

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.

micc83 commented 9 years ago

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>
kthornbloom commented 9 years ago

HEY! It works. Thanks a lot man.

micc83 commented 9 years ago

Great, you saved me the time to test it :) Il 02/mar/2015 18:04 "Kevin Thornbloom" notifications@github.com ha scritto:

HEY! It works. Thanks a lot man.

— Reply to this email directly or view it on GitHub https://github.com/micc83/Nuwk/issues/9#issuecomment-76752008.