| | 1 | Portable application generator is used to create offline windows standalone instance with or without data exported from a live Sahana Eden instance. This page serves as a guide for its usage. |
| | 2 | |
| | 3 | = Create web2py standalone exe = |
| | 4 | |
| | 5 | The portable application generator requires a web2py exe built with the libraries required by Sahana Eden. |
| | 6 | |
| | 7 | 1. Install the Eden developer environment with python 2.7 [http://eden.sahanafoundation.org/wiki/InstallationGuidelinesDeveloper] |
| | 8 | 2. Install cxfreeze from [http://cx-freeze.sourceforge.net/] |
| | 9 | 3. Copy static/scripts/tools/standalone_exe_cxfreeze.py to your web2py directory. |
| | 10 | 4. Run the following to generate a standalone web2py executable in the build directory of the web2py directory. |
| | 11 | {{{ |
| | 12 | python standalone_exe_cxfreeze.py build_exe |
| | 13 | }}} |
| | 14 | 5. Rename the build inside the build directory as web2py and compress it to create web2py.zip ('''Note: The zip file needs to uncompress to produce a directory named web2py''') |
| | 15 | |
| | 16 | = Using Portable application generator = |
| | 17 | |
| | 18 | 1. Upload the web2py.zip created above to your Sahana Eden instance. |
| | 19 | 2. Select the required options to generate the portable application. |
| | 20 | 3. After initial generation of the portable application - a provision is provided to download the last built portable application. |