root/nodebox/branches/try-qt/macbuild.sh

Revision 232, 0.9 kB (checked in by fdb, 13 months ago)

Include all default python2.5 packages and modules. Py2app calculates a dependency graph, this is a workaround.

  • Property svn:executable set to *
Line 
1#!/bin/sh
2# Builds the NodeBox Mac OS X distribution folder.
3
4# Remove dist and build
5rm -rf dist build
6
7# First, make the help files.
8cd ../helpsrc
9python makehelp.py
10
11# Now build the application.
12# Semi-standalone means it bundles all the required modules,
13# but not Python itself.
14cd ../src
15python macsetup.py py2app
16
17# Due to a bug in PyObjC, the included site.py file is incorrect.
18# We provide our own.
19cp site.py dist/NodeBox.app/Contents/Resources
20
21# Another PyObjC bug: the icon in the plist file is ignored, and instead
22# PythonApplet.icns is used. Copy our NodeBox icon over PythonApplet.icns
23cp Resources/NodeBox.icns dist/NodeBox.app/Contents/Resources/PythonApplet.icns
24
25# Now make a distro directory that will contain all the files.
26mkdir -p dist/NodeBox/NodeBox
27cd dist/NodeBox/NodeBox
28mv ../../NodeBox.app .
29cp ../../../Changes.txt .
30cp ../../../ReadMe.txt .
31svn export http://dev.nodebox.net/svn/nodebox/trunk/examples/ Examples
32
33# All done.
34cd ../../..
Note: See TracBrowser for help on using the browser.