2010-01-09 13:13:26 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-12-30 18:26:16 +04:00
|
|
|
VERSION=`date "+%Y.%m.%d"`
|
|
|
|
#VERSION=2011.12
|
2010-01-09 13:13:26 +03:00
|
|
|
|
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
|
|
|
|
2010-01-30 21:33:23 +03:00
|
|
|
`dirname $0`/release-common.sh -v $VERSION
|
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
|
2011-01-11 15:42:44 +03:00
|
|
|
cp OpenSCAD-$VERSION.dmg ~/Dropbox/Public
|
|
|
|
ln -sf OpenSCAD-$VERSION.dmg ~/Dropbox/Public/OpenSCAD-latest.dmg
|
2010-01-22 19:09:00 +03:00
|
|
|
|
|
|
|
echo "Upload in progress..."
|
2011-09-11 22:56:45 +04:00
|
|
|
|
|
|
|
# Update snapshot filename on wab page
|
|
|
|
`dirname $0`/update-web.sh OpenSCAD-$VERSION.dmg
|