Modified the layout slightly to make things a little smaller for the smaller monitor folk. Added some misc fields that people might want. |
||
|---|---|---|
| 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.
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 In 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.2b
You can just put the app where ever you want and double click to run it.
###Windows
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.2b
Linux 32bit download - v0.1.2b
chmod 755 the Web2Exe binary inside the extracted folder and then run by double clicking or ./Web2Exe 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 Web2Exe
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
Supports exporting web applications to Mac, Linux, and Windows. So far, it works with all the apps I've tested it with. It supports Phaser and I assume it supports all other html5 and javascript libraries because it uses the same engine Google Chrome uses.
Future Features
- 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.
- Ability to specify a node-webkit version. Currently, it just grabs v0.9.2.
