edited the plugin; You can use it now in your html5 apps, it won't break the project, eg. if you are in a html5 app and try to call an node-webkit action, project won't break. (so it follows the "code once, export everywhere" mantra)
Also, added the "IsOnNodeWebkit" condition so you can tell in what environment are you running on.
Added the "open window" action so you can open additional windows. it accepts two parameters: URI and specs;
URI can be either some url, eg "http://www.google.com", or it can be URI to another .html file in your app, so if you have an folder in your app package called "AnotherConstructProject", and in it another exported C2 project, you can open it in another window eg. "AnotherConstructProject/index.html". Just remember to add it to your package.json, so beneath the "main:'index.html'" line add another line "second: 'AnotherConstructProject/index.html'" , and you're set to go!
specs are anything that goes in the "window" section of the package.json; eg. "screenX=0,screenY=0,width=100,height=100".
re-download, add suggestions, and enjoy!
Edited the plugin, you can use action "close window" and little red x, it won't break, but i had to put deprecated property on the "onClose" trigger because it caused problems. Also, bumped version to 1.1.
Re-download plugin if you like!
Edited the plugin, action "quit" now quits the app properly and instantly.
BUT, when you try to close window either with a red X or action "close window" it doesn't work. It's just a problem with catching the "onClose" event and managing the closure properly, but i'll check into that tomorrow. For now, use the "quit" action to close the app.
Re-download the plugin, uploaded a new version
Exported a new demo with faster loading time
Did some minor changes to .capx
Download the plugin here
And the demo here
And the .capx here
Conversation about and more info on node-webkit here
Plugin is still in development and heavy testing. Please test and be careful!
I really don't want to copy and paste bunch of text so read about implemented stuff
here (window related stuff)
here (App related stuff)
here (clipboard related stuff)
here(Shell related stuff)
Final note: for succesfuly creating an .exe you'll have to play with package.json, it's nothing scary, just a bunch of variables you can set so that .exe knows how to run.
Read about package.json for node-webkit here
EDIT: forgot to mention, plugin exports an example package.json file for you. After exporting your project, open package.json file in your favorite text editor and edit it as you need!
For exporting to .exe check here