| files | ||
| main.py | ||
| README.md | ||
| utils.py | ||
Web2Executable
Uses node-webkit to generate "native" apps for already existing web apps.
Requires the pyside library and python 2.X to run. I've only tested the code on python 2.7.3-2.7.5, so I can't speak about any lower version, but it should work as long as PySide is supported.
Note!!
When building linux applications using this application, there is an issue on the newer versions of Ubuntu (13.XX) and similar distros that causes the error: Shared library libudev.so.0 does not exist. If you are distributing an application by exporting to these platforms, you'll need to instruct your users to either manually symlink the file or make an install script following the directions here. This is an issue with node-webkit and not this application itself.
Getting Started
Run with:
python main.py
It's a pretty simple app. Just point it the the directory that your web application lives, customize the options (the two marked with a star are the only ones required) and then choose your export options. The app will export under YOUR_OUTPUT_DIR/YOUR_APP_NAME.
What's New?
v0.1.6b
- added the ability to get newer NodeWebkit versions automatically from the changelog of node-webkit. Also fixed compatibility with 0.10.X.
v0.1.4b
- fixed an issue where index.html would be found with absolute path, which would cause a "require not found" error
v0.1.3b
- Added the ability to choose node-webkit versions if 0.9.2 is not what you want*
- Modified the UI slightly for people with smaller monitors
- Added a force-download option to overwrite files
*Note: If you have already downloaded, say, 0.9.2 of webkit, then you select 0.8.5, you will have to select "Force download" in order to update the files properly. I'm not sure how to reliably/efficiently detect and store multiple versions of the node-webkit files.
v0.1.2b
- Fixed an issue with icon copying
- Fixed a bug that overwrote existing package.json files.
Prebuilt Binaries
###Mac OS X
Mac OS X 10.7+ download - v0.1.6b
Previous Version:
Mac OS X 10.7+ download - v0.1.5b
You can just put the app where ever you want and double click to run it.
###Windows
Previous Version:
Double click the Win2Exe.exe file inside the extracted folder.
###Linux
Only on Ubuntu 12.04. If someone knows how to make them on all linux distros, let me know. I'm using cx_Freeze to compile them to standalone apps. You must copy all .so.X.X files to either /usr/local/lib/ or /usr/lib/ for it to work.
Linux 64bit download - v0.1.6b
Previous Version:
Linux 64bit download - v0.1.4b
chmod 755 the main binary inside the extracted folder and then run by double clicking or ./main from the command line. Also, if you get shared library errors, you need to copy all the .so files into /usr/lib/ or /usr/local/lib/. Make sure you check to see if any libraries in /usr/lib/ conflict with the files first.
chmod 755 main
sudo cp *.so.* /usr/lib/
Note: For some reason, these linux binaries are not working correctly on vanilla systems. I'm looking into the issue and will update them when I figure out what is going on.
Features
- Cross platform to Mac, Windows, Linux
- Easy to use and straightforward
- Streamlined workflow from project -> working standalone exe
- Same performance as Google Chrome
- Works with Phaser; should work with other HTML5 game libraries
- Export web applications to all platforms from your current OS
- Ability to specify a node-webkit version to download
Future Features
- A download manager! It's getting annoying downloading stuff over and over.
- Automatic replacement of icon files inside of Mac apps and Windows exes. Right now, the only way to have a custom Mac icon is to convert your image to .icns format and put it in the resources folder of the app. For windows, you have to use a utility like Resource Hacker.
Screenshots
v0.1.3b
v0.1.2b

