Clickable Mac OS X app for Sage 3.4
It has been a while since I built a clickable Mac OS X app for Sage. But with the release of Sage 3.4, I thought I revisit the joy of doing so. I’m using OS X 10.4.8 and, like some people, I’ve been too lazy to update my Mac. Many of the steps for building an app for Sage 3.4 haven’t changed since Sage 3.3. The only major thing is that I now have to type in more stuff to build a .dmg for Sage 3.4. However, after getting over my fear of typing, I managed to enter a few extra characters and followed the building instructions as per Sage 3.3. Yes, I’m on a mission to type as little as possible.
With the source release of Sage 3.4, building a clickable Mac OS X app is still as easy as 1-2-3:
- Download and extract sage-3.4.tar to a directory that you have write access:
tar -xvf sage-3.4.tar -C /path/to/preferred/dir
- Navigate to the top level directory of the uncompressed source distribution, and compile Sage 3.4 from there:
cd SAGE_ROOT/ make # be patient here. Go get a drink or watch TV. make test # this is optional. If you do this, be # very patient here. Go practice zen or yoga 🙂
- Now create a binary OS X clickable app:
SAGE_APP_BUNDLE=yes export SAGE_APP_BUNDLE ./sage -bdist 3.4 # this can take a while
But hang on. Why did I have to type in the two lines containing the SAGE_APP_BUNDLE variable? For the gory details, see this sage-support thread. In case the curiosity cat has bitten you, here’s my terminal session while building the clickable app:
After the system has completed building the binary version, you can find the binaries in SAGE_ROOT/dist. But what does it look like when it’s running? Well, here it is in action:
Have a nice Sage… I mean day.