root/nodebox/trunk/src/macbuild.sh

Revision 330, 1.0 kB (checked in by fdb, 12 months ago)

Changed building to make zipfile, added fit command

  • 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
27cd dist/NodeBox
28mv ../NodeBox.app .
29cp ../../Changes.txt .
30cp ../../ReadMe.txt .
31svn export http://dev.nodebox.net/svn/nodebox/trunk/examples/ Examples
32
33# Zip the distro.
34cd ../
35zip -r NodeBox-latest.zip NodeBox
36
37# All done.
38cd ../
Note: See TracBrowser for help on using the browser.