2010-01-09 13:13:26 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-01-18 00:02:28 +04:00
|
|
|
# NB! To build a release build, the VERSION environment variable needs to be set.
|
|
|
|
# See doc/release-checklist.txt
|
2010-01-09 13:13:26 +03:00
|
|
|
|
2012-01-14 20:37:34 +04:00
|
|
|
if test -z "$VERSION"; then
|
|
|
|
VERSION=`date "+%Y.%m.%d"`
|
|
|
|
COMMIT=-c
|
2013-01-13 22:46:36 +04:00
|
|
|
SNAPSHOT=true
|
2012-01-14 20:37:34 +04:00
|
|
|
fi
|
|
|
|
|
2011-11-28 02:18:26 +04:00
|
|
|
# Turn off ccache, just for safety
|
|
|
|
PATH=${PATH//\/opt\/local\/libexec\/ccache:}
|
|
|
|
|
2010-05-28 03:18:08 +04:00
|
|
|
# This is the same location as DEPLOYDIR in macosx-build-dependencies.sh
|
2011-12-15 07:59:15 +04:00
|
|
|
export OPENSCAD_LIBRARIES=$PWD/../libraries/install
|
2010-01-22 16:22:16 +03:00
|
|
|
|
2013-01-17 20:37:51 +04:00
|
|
|
# Make sure that the correct Qt tools are used
|
|
|
|
export PATH=$OPENSCAD_LIBRARIES/bin:$PATH
|
|
|
|
|
2012-01-14 20:37:34 +04:00
|
|
|
`dirname $0`/release-common.sh -v $VERSION $COMMIT
|
2010-02-10 03:50:02 +03:00
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-05-28 03:18:08 +04:00
|
|
|
|
|
|
|
echo "Sanity check of the app bundle..."
|
2010-05-10 21:42:27 +04:00
|
|
|
`dirname $0`/macosx-sanity-check.py OpenSCAD.app/Contents/MacOS/OpenSCAD
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2010-01-22 19:09:00 +03:00
|
|
|
|
2013-01-13 22:46:36 +04:00
|
|
|
echo "Uploading..."
|
|
|
|
LABELS=OpSys-OSX,Type-Executable
|
|
|
|
if ! $SNAPSHOT; then LABELS=$LABELS,Featured; fi
|
|
|
|
`dirname $0`/googlecode_upload.py -s 'Mac OS X Snapshot' -p openscad OpenSCAD-$VERSION.dmg -l $LABELS
|
2011-09-11 22:56:45 +04:00
|
|
|
|
|
|
|
# Update snapshot filename on wab page
|
|
|
|
`dirname $0`/update-web.sh OpenSCAD-$VERSION.dmg
|