Psi nightly builds
So I’m a lazy bastard, so far nothing new. But I also want to look at the latest Psi, ze mozt powerfull Jabber client out there, releases for Mac, and lo and behold they have nightly builds…
This is the script I ended up with to update my Psi every day:
melo@RoadRunner(~/Desktop/psi-night-build)$ cat update_psi.sh
#!/bin/sh
#
# Updates Psi with latest nightly build
#
today=`date +%Y%m%d`
if [ -d "psi-mac-$today" ] ; then
echo "You already have build $today, restart your Psi to use it, maybe?"
exit 1
fi
curl -O http://spike.ulyssis.org/psi/mac/psi-mac-$today.zip
unzip psi-mac-$today.zip
rm psi-mac-$today.zip
rsync -a into_frameworks/ psi-mac-$today/Psi.app/Contents/Frameworks
rm -f psi-latest
ln -s psi-mac-$today psi-latest
growlnotify -n "Psi Nightly build updater" -s -a Psi 'Psi is updated!' <<EOF
You Psi was updated with the latest nightly build, $today. Please Quit and restart you Psi.
EOF
Make sure you chmod 755 update_psi.sh
.
Now you just need to restart you Psi every morning after the nice growl notification appears. I keep ~Desktop/psi-night-build/psi-latest/Psi.app
on my Dock.
Couple of notes: on the directory where you run update_psi.sh
, you must have a directory into_frameworks
. Inside you need to put all the Frameworks required to run Psi. Right now, you need to have the libqt-mt.3.dylib
(found on the same directory where you can find Psi nightly builds), and the Growl framework.
I used the copy of the Growl framework that comes with Ecto. Use locate Growl.framework
to find a copy on your system, and copy it into into_frameworks
.
My into_frameworks
looks like this:
melo@RoadRunner(~/Desktop/psi-night-build)$ ls -la into_frameworks/
total 18376
drwxrwxr-x 4 melo melo 136 15 Apr 11:01 .
drwxrwxr-x 9 melo melo 306 15 Apr 11:29 ..
drwxr-xr-x 7 melo melo 238 4 Apr 04:17 Growl.framework
-rw-r--r-- 1 melo melo 9404804 16 Aug 2004 libqt-mt.3.dylib
The main directory where I keep update_psi.sh
looks like this:
melo@RoadRunner(~/Desktop/psi-night-build)$ ls -la
total 128
drwxrwxr-x 9 melo melo 306 15 Apr 11:29 .
drwx------ 23 melo melo 782 15 Apr 11:21 ..
drwxrwxr-x 4 melo melo 136 15 Apr 11:01 into_frameworks
lrwxrwxr-x 1 melo melo 16 15 Apr 11:12 psi-latest -> psi-mac-20050415
drwxr-xr-x 5 melo melo 170 15 Apr 02:25 psi-mac-20050415
-rwxr-xr-x 1 melo melo 598 15 Apr 11:27 update_psi.sh
Although the Growl framework is required in latest builds, I cannot seem to get it working. If you know how, xmpp me at melo funnychar simplicidade.org.
Update: Growl works very well if you use the Remko versions. See his Psi page.
Update 2: small bug in the if [ -d ...
in the script, change “ to “”. Thanks go to rebarbado.