|
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 |
|---|
| 5 | rm -rf dist build |
|---|
| 6 | |
|---|
| 7 | # First, make the help files. |
|---|
| 8 | cd ../helpsrc |
|---|
| 9 | python makehelp.py |
|---|
| 10 | |
|---|
| 11 | # Now build the application. |
|---|
| 12 | # Semi-standalone means it bundles all the required modules, |
|---|
| 13 | # but not Python itself. |
|---|
| 14 | cd ../src |
|---|
| 15 | python macsetup.py py2app |
|---|
| 16 | |
|---|
| 17 | # Due to a bug in PyObjC, the included site.py file is incorrect. |
|---|
| 18 | # We provide our own. |
|---|
| 19 | cp 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 |
|---|
| 23 | cp Resources/NodeBox.icns dist/NodeBox.app/Contents/Resources/PythonApplet.icns |
|---|
| 24 | |
|---|
| 25 | # Now make a distro directory that will contain all the files. |
|---|
| 26 | mkdir -p dist/NodeBox |
|---|
| 27 | cd dist/NodeBox |
|---|
| 28 | mv ../NodeBox.app . |
|---|
| 29 | cp ../../Changes.txt . |
|---|
| 30 | cp ../../ReadMe.txt . |
|---|
| 31 | svn export http://dev.nodebox.net/svn/nodebox/trunk/examples/ Examples |
|---|
| 32 | |
|---|
| 33 | # Zip the distro. |
|---|
| 34 | cd ../ |
|---|
| 35 | zip -r NodeBox-latest.zip NodeBox |
|---|
| 36 | |
|---|
| 37 | # All done. |
|---|
| 38 | cd ../ |
|---|