-
Notifications
You must be signed in to change notification settings - Fork 1
Windows (New)
This guide is still a work in progress, so it is recommended that to read rough guide to create windows packages on the blog as well.
In this guide you will learn how to both run emesene2 from source and how to package it. It is meant to help both testers and developers who are using Windows as their OS of choice. For those that would like to just try out new features and bugfixes, there are pre-packaged development/experimental packages available at https://github.com/emesene/emesene/downloads.
- Python 2.6.6 (NOT 3.x)
- PyGTK all-in-one 2.24.2
- Visual C++ 2008 Redistributable Package (NOT SP1!)
- Win32 OpenSSL v1.0.0d
- PyOpenSSL 0.11
- PyCrypto 2.3
- PyWin32 Build217
- WebKitGTK+ 1.2.7
- PyWebKitGtk 1.1.8
- dnspython
- py2exe 0.6.9
- NSIS 2.46
- MSysGit 1.7.10
- Install Python, use the default options so just kept clicking next.
- Install PyGTK all-in-one, use the default options so just kept clicking next.
- Install Visual C++ 2008 Redistributable Package, use the default options so just kept clicking next.
- Install Win32 OpenSSL, use the default options so just kept clicking next.
- Install PyOpenSSL, use the default options so just kept clicking next.
- Unzip and install PyCrypto, use the default options so just kept clicking next.
- Install PyWin32, use the default options so just kept clicking next.
- Extract WebKitGTK+ to
C:\Python26\Lib\site-packages\gtk-2.0\runtime\, and select No for any file override. - Extract PyWebKitGtk to
C:\Python26\. - Extract dnspython to
C:\Python26\Lib\site-packages\. - Install py2exe, use the default options so just kept clicking next.
- Install NSIS, use the default options so just kept clicking next.
- Install MSysGit, use the default options so just kept clicking next.
Windows XP:
- Right click on My Computer.
- Click on Properties.
- Go to the Advanced tab.
- Click on the Environment Variables button.
- In the System variables section, select Path, and click Edit.
- In the Variable value textbox, at the end add
;C:\Python26. - Click OK to save changes.
Windows Vista?/7:
- Right click on Computer in the startmenu.
- Click on Properties.
- Click on Advanced system settings.
- Click on the Environment Variables button.
- In the System variables section, select Path, and click Edit.
- In the Variable value textbox, at the end add
;C:\Python26. - Click OK to save changes.
-
git clone https://github.com/emesene/emesene.gitclone the repo locally -
cd emesenemove inside the repo folder -
git reset --hard v2.yy.xOnly if you wan't to reset your code (you will lost any change you have made) -
git pullIf you wan't latest changes (ie, you have some custom change that you want to keep and also get latest changes) -
cd emesenemove inside emesene's folder -
python emesene.pyrun emesene
- Exit the emesene window that popped up after running from source. Leave the terminal open.
- Go back to the base dir
cd .. -
cp ./windows/boot_common.py /c/Python26/Lib/site-packages/py2exe/assuming your python's installation is on c:/Python26, this prevents an ugly error popup when closing emesene -
python setup.py py2exeYou should always download LATEST setup.py version, no matter what emesene version you are building, setup.py was broken between 2.11.7 and 2.11.11 (inclusive)
This will create a folder called dist, inside you have 4 exes: emesene.exe (without console output visible, everything goes to emesene.exe.log) emesene_debug.exe (with console output) emesene_portable.exe (will create an emesene folder inside the working directory to store config, every log is saved inside emesene_portable.exe.log) emesene_portable_debug.exe (with console output and portable config)
setup.py file assumes you have "/c/Python26/Lib/site-packages/gtk-2.0/" added to your system path variable (it should be if you followed above steps to run emesene from source), it will copy some content from /runtime/lib, /runtime/share and /runtime/etc to have a better look and working Adium Themes.
it will also add Clearlooks as the default theme, you can install any other theme if you want to, just do it before packaging everything with nsis
- NOTE: If you have run emesene from the dist folder (using the generated exes), remember to remove any extra file like .exe.log files and emesene config folder if you used the portable exe, or NSIS will add those to the final package.
- In the emesene folder in your directory, right click on the .nsi files with "MUI" in the name.
- Select Compile NSIS Script and wait for NSIS to package emesene into an installer/portable version.
(W.I.P.) If you want to submit changes to the code, this is for you.
- Set up SSH keys.
- Set up your info.
Check out the Window's Set Up Git guide to learn how. Includes pictures.
Note: this is experimental so expect failures. Actually there's no webkit support.
KNOW BUG: on XP emesene crash when you move a window on Windows 7 emesene freeze instead.
- Python 2.7.2 (NOT 3.x)
- Visual C++ 2008 Redistributable Package (NOT SP1!)
- Win32 OpenSSL v1.0.0d
- PyOpenSSL 0.11
- PyCrypto 2.3
- PyWin32 Build217
- NSIS 2.46
- MSysGit 1.7.10
- Follow the same instruccion as the gtk2 version for the common packages, but use C:\Python27\ instead of C:\Python26\
- Download bundle from here http://optionexplicit.be/projects/gnome-windows/GTK+3/gtk+/git/
- Copy the bundle file into c:/emesene/bundle and copy installergtk3.py too
- run installergtk3.py
- Run emesene from source
- if you want to make an installer then run setupgtk3.py and the nsis script
KNOW BUG: popup menu on tray icon don't work KNOW BUG: backcolor on notifications is not working well KNOW BUG: sliders have problems **KNOW BUG: crash when move windows. Need to remove gtk.gdk.threads_init(), gtk.gdk.threads_enter() y gtk.gdk.threads_leave() calls **