Skip to content
mpjeff edited this page Jun 12, 2011 · 1 revision

Making a Mac Release

First, make sure you can compile Tiled. See Contributing to Tiled for instructions on setting up and building.

Open the Terminal, and cd into the base folder of your tiled checkout.

Run qmake to set up the release configuration. The following command will set it up to build in release mode for 32 and 64 bit systems. The -spec macx-g++ will make sure it generates a makefile and not an Xcode project.

qmake -r -spec macx-g++ CONFIG+=release CONFIG+=x86 CONFIG+=x86_64

Use make to build it. Just in case, you can use make clean to make sure any old build files don't interfere with anything.

make clean
make

If it builds, you should have a Tiled.app in the bin folder. You should open it and make sure it works properly.

open bin/Tiled.app

If everything is running smoothly, invoke the distribution script from the Terminal with the version number of the release. This bundles Qt within the app (so end users don't need Qt installed to run it), and it makes a .dmg file containing the app and related readmes and examples.

./dist/make-dist-mac.sh 0.6.2

The dmg will be placed in the current folder. Make sure you mount and test it in case the distribution script broke. If it works, the dmg is ready to be distributed.