How to update the launcher

This page ill slates how to update the launcher of FlightGear Mac OS X.

Downloading the latest code

You can download the files for the launcher with the following command:

$ LC_ALL=C /usr/local/bin/svn co \
https://macflightgear.svn.sourceforge.net/svnroot/macflightgear/tags/1.0.0/FlightGearOSX FlightGearOSX

To update the existent files, use the command below at the top directory of the launcher:

$ LC_ALL=C /usr/local/bin/svn update

If you don't have a subversion client, download a binary package from Subversion Project.

Note

Updating the launcher

It's very simple. Just type the commands below at Terminal.app:

$ cd FlightGearOSX
$ ./update.sh

Note

If you download older revision, there may be no update.sh. In this case, use the command below:

$ cd FlightGearOSX
$ rm /Applications/FlightGear.app/Contents/Resources/*.rb
$ rsync -avzr --exclude .svn *.rb *.lproj *.html /Applications/FlightGear.app/Contents/Resources

This script assumes that FlightGear is installed at /Applications/FlightGear.app. If you instaled FlightGear at the other folder, edit update.sh and change the destination (target) folder name.

Having a test flight

Launch FlightGear.app at the Applications folder and see how it works. If you got errors or weird behaviors, move the preference file by executing:

$ mv ~/Library/Preferences/net.sourceforge.macflightgear.plist /tmp

The launchers earlier than Dec-10-2006 needs this command:

$ mv ~/Library/Preferences/com.opensource.FlightGear.plist /tmp

If deleting the file above doesn't solve the problem, download the update package from the Downloads page and reinstall the original files. To avoid unexpected errors, Deleting *.rb files under /Applications/FlightGear.app/Contents/Resources is recommended before restoring the files.

Note

As of Dec-10-2006, the bundle identifier of FlightGear OS X has changed to net.sourceforge.macflightgear. This leads the preference file to be also changed. If you already have older versions of the launcher, the latest launcher will not refer the old plist (com.opensource.FlightGear). You can remove ~/Library/Preferences/com.opensource.FlightGear.plist.