diff options
author | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-15 18:39:28 (GMT) |
---|---|---|
committer | kintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-02-15 18:39:28 (GMT) |
commit | 48ca7d1856a0c030ce1bf536f88cd51304ff8b1e (patch) | |
tree | 38c485e8efde622c6a8420e1c476b789336288aa /scripts/release-common.sh | |
parent | 0046756d9634df65a64cb6c471e71ec773853438 (diff) |
Use macdeployqt tool instead of manual install name renaming
git-svn-id: http://svn.clifford.at/openscad/trunk@440 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'scripts/release-common.sh')
-rwxr-xr-x | scripts/release-common.sh | 51 |
1 files changed, 15 insertions, 36 deletions
diff --git a/scripts/release-common.sh b/scripts/release-common.sh index f08f046..b782976 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -76,40 +76,16 @@ if [[ $? != 0 ]]; then fi echo "Creating directory structure..." -rm -rf openscad-$VERSION -mkdir openscad-$VERSION -EXAMPLESDIR=openscad-$VERSION/examples/ case $OS in MACOSX) - OPENCSGDIR=`cd "$OPENCSGDIR" && pwd` - mkdir OpenSCAD.app/Contents/Frameworks - cp $OPENCSGDIR/lib/libopencsg.dylib OpenSCAD.app/Contents/Frameworks - cp /opt/local/lib/libGLEW.1.5.1.dylib OpenSCAD.app/Contents/Frameworks - cp /Library/Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL OpenSCAD.app/Contents/Frameworks - cp /Library/Frameworks/QtGui.framework/Versions/4/QtGui OpenSCAD.app/Contents/Frameworks - cp /Library/Frameworks/QtCore.framework/Versions/4/QtCore OpenSCAD.app/Contents/Frameworks - install_name_tool -change $OPENCSGDIR/lib/libopencsg.1.dylib @executable_path/../Frameworks/libopencsg.dylib OpenSCAD.app/Contents/MacOS/openscad - install_name_tool -change QtOpenGL.framework/Versions/4/QtOpenGL @executable_path/../Frameworks/QtOpenGL OpenSCAD.app/Contents/MacOS/openscad - install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui OpenSCAD.app/Contents/MacOS/openscad - install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore OpenSCAD.app/Contents/MacOS/openscad - install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui OpenSCAD.app/Contents/Frameworks/QtOpenGL - install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore OpenSCAD.app/Contents/Frameworks/QtOpenGL - install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore OpenSCAD.app/Contents/Frameworks/QtGui - install_name_tool -change /opt/local/lib/libGLEW.1.5.1.dylib @executable_path/../Frameworks/libGLEW.1.5.1.dylib OpenSCAD.app/Contents/MacOS/openscad - install_name_tool -id libopencsg.dylib OpenSCAD.app/Contents/Frameworks/libopencsg.dylib - install_name_tool -change /opt/local/lib/libGLEW.1.5.1.dylib @executable_path/../Frameworks/libGLEW.1.5.1.dylib OpenSCAD.app/Contents/Frameworks/libopencsg.dylib - install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui OpenSCAD.app/Contents/Frameworks/libopencsg.dylib - install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore OpenSCAD.app/Contents/Frameworks/libopencsg.dylib - install_name_tool -id libGLEW.1.5.1.dylib OpenSCAD.app/Contents/Frameworks/libGLEW.1.5.1.dylib - mv OpenSCAD.app openscad-$VERSION - EXAMPLESDIR=openscad-$VERSION/OpenSCAD.app/Contents/Resources/examples + EXAMPLESDIR=OpenSCAD.app/Contents/Resources/examples + ;; + *) + EXAMPLESDIR=openscad-$VERSION/examples/ + rm -rf openscad-$VERSION + mkdir openscad-$VERSION ;; - WIN) - #package - cp win32deps/* openscad-$VERSION - cp $TARGET/openscad.exe openscad-$VERSION - ;; esac mkdir -p $EXAMPLESDIR @@ -117,18 +93,21 @@ cp examples/* $EXAMPLESDIR chmod -R 644 $EXAMPLESDIR/* echo "Creating archive.." + case $OS in MACOSX) - hdiutil create -quiet -ov -srcfolder openscad-$VERSION/OpenSCAD.app OpenSCAD-$VERSION.dmg + macdeployqt OpenSCAD.app -dmg -no-strip + mv OpenSCAD.dmg OpenSCAD-$VERSION.dmg hdiutil internet-enable -yes -quiet OpenSCAD-$VERSION.dmg echo "Binary created: OpenSCAD-$VERSION.dmg" - ;; - *) + ;; + WIN) + #package + cp win32deps/* openscad-$VERSION + cp $TARGET/openscad.exe openscad-$VERSION rm -f openscad-$VERSION.zip "$ZIP" $ZIPARGS openscad-$VERSION.zip openscad-$VERSION + rm -rf openscad-$VERSION echo "Binary created: openscad-$VERSION.zip" ;; esac - -rm -rf openscad-$VERSION - |