- python $PROGDIR/../zappycfiles.py $INSTALLROOT/Library/Frameworks/Python.framework
-
- # Copy the demo, samples, and such to the Applications dir
- APPDIR=$INSTALLROOT/Applications/wxPythonOSX-$VERSION
- mkdir -p $APPDIR
- cp -pR $WXDIR/wxPython/demo $APPDIR
- cp -pR $WXDIR/wxPython/samples $APPDIR
-
- # Move sample launchers to .pyw files.
- # TODO: A better, more automated way to do this!!!
- pushd $APPDIR/samples
- for x in StyleEditor/STCStyleEditor \
- doodle/superdoodle \
- frogedit/FrogEdit \
- pySketch/pySketch \
- wxProject/wxProject; do
- mv $x.py $x.pyw
- done
- popd
-
- # Make an app to launch the demo
- cat > $APPDIR/demo/RunDemo.pyw <<EOF
-import sys, os
-sys.path.insert(0, "/Applications/wxPythonOSX-$VERSION/demo")
-os.chdir("/Applications/wxPythonOSX-$VERSION/demo")
-import Main
-Main.main()
-EOF
- pythonw $PROGDIR/../buildapp.py \
- --builddir=$APPDIR \
- --name=RunDemo \
- --mainprogram=$APPDIR/demo/RunDemo.pyw \
- --iconfile=$PROGDIR/RunDemo.icns \
- build
-
- # Make an app to launch PyShell
- pythonw $PROGDIR/../buildapp.py \
- --builddir=$APPDIR \
- --name=PyShell \
- --mainprogram=$INSTALLROOT$PREFIX/bin/pyshell.py \
- --iconfile=$PROGDIR/PieShell.icns \
- build
-
- # Make an app to launch XRCed
- pythonw $PROGDIR/../buildapp.py \
- --builddir=$APPDIR \
- --name=XRCed \
- --mainprogram=$INSTALLROOT$PREFIX/bin/xrced.py \
- --iconfile=$PROGDIR/XRCed.icns \
- build