Since there is a guide on how to build emesene on Windows, I thought I would make a similar guide for OS X.
These instructions are for Snow Leopard and Lion only!
Prerequisites:
- Git
- A Text Editor
Method:
Step 1: Create a working directory
Open Terminal and run:
mkdir ~/Desktop/emeseneworkingdir && cd ~/Desktop/emeseneworkingdir
(you can change this to whatever you want, make a note of it as you will need it later)
Step 2: Building PyGTK
emesene uses the PyGTK toolkit to provide a GUI, unfortunately it is a pain in the ass to get working on OS X. I recommend using a prebuilt binary like this one. If you are building from source please change the install path to /Applications/emesene.app/Contents/Resources/gtk. Guides for building PyGTK on OS X can be found using Google. You will also need to build PyCrypto if building from source. If using JHBuild edit ~/.jhbuildrc to change the install path. Once gtk has been built or downloaded, copy the gtk folder into the working directory you created earlier.
Step 3: Get the required files
Platypus expects certain files to be present in your working directory, these are:
- emesene.sh (main shell script)
- emesene.icns (icon file)
- gtk (pygtk directory)
- Uninstall.command (the uninstaller, only needed for release)
- emesenedmg.png (dmg background, only needed for release)
- emesenepygtkpatch.patch (patch for emesene to work with gtk)
All of these can be found in reqfiles.zip (except gtk, you should have that already from step 2)
Open Terminal and run:
curl -o reqfiles.zip http://sidhosting.co.uk/misc/emesene/reqfiles.zip unzip reqfiles.zip rm reqfiles.zip && rm -r __MACOSX
Step 4: Install Platypus
Download Platypus from here and drag to your applications folder. Open Platypus, click on preferences and click the “Install” button where it say “Command line tool”.
Step 5: Build emesene
First we need to fetch my build script.
curl -O http://sidhosting.co.uk/misc/emesene/build && chmod +x build
Open up build in a text editor and at the top where it says builder variables change workdir and buildpath to suit your needs. If your workdir is inside your home directory, please use /Users/USER/Desktop rather than ~/Desktop.
The emesene builder works in two ways, it can either create a local version for use on your own machine or it can create a release version of emesene.
The build script takes three variables: version, build, release/local
So to build emesene version 2.12.3 build 1 for release you would run the following in Terminal:
./build 2.12.3 1 release
So to build emesene version 2.12.4-dev build 2 for your own local use you would run the following in Terminal:
./build 2.12.4-dev 2 local
If you get an error saying “…. not identified as an Apple .icns file” do not worry about it.
You should now have a emesene.app on your desktop (local use) or an emesene folder (release use)
Emesene is now ready to go!
N.B. To build a newer version of emesene, just run ./build again, setting the variables to the version and build you want to create. You do not need to repeat steps 1-4.












