diff --git a/package/osx/make_dmg.sh b/package/osx/make_dmg.sh index cbacbac23..bfa460c5d 100755 --- a/package/osx/make_dmg.sh +++ b/package/osx/make_dmg.sh @@ -20,7 +20,7 @@ if [ $(git describe &>/dev/null) ]; then SLIC3R_BUILD_ID=$(git describe) else TAGGED=false - SLIC3R_BUILD_ID=${SLIC3R_VERSION}d + SLIC3R_BUILD_ID=${SLIC3R_VERSION}dev fi # If we're on a branch, add the branch name to the app name. @@ -76,7 +76,7 @@ find $macosfolder/local-lib -name .packlist -delete rm -rf $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni/include echo "Relocating dylib paths..." -for bundle in $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/auto/Wx/Wx.bundle $(find $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets -name '*.dylib' -type f); do +for bundle in $(find $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/auto/Wx -name '*.bundle') $(find $macosfolder/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets -name '*.dylib' -type f); do chmod +w $bundle find $SLIC3R_DIR/local-lib -name '*.dylib' -exec bash -c 'install_name_tool -change "{}" "@executable_path/local-lib/lib/perl5/darwin-thread-multi-2level/Alien/wxWidgets/osx_cocoa_3_0_2_uni/lib/$(basename {})" '$bundle \; done @@ -89,6 +89,7 @@ echo "Copying perl from $PERL_BIN" cp $PERL_BIN $macosfolder/perl-local ${PP_BIN} -M attributes -M base -M bytes -M B -M POSIX \ -M FindBin -M Unicode::Normalize -M Tie::Handle \ + -M Time::Local -M Math::Trig \ -M lib -M overload \ -M warnings -M local::lib \ -M strict -M utf8 -M parent \ diff --git a/package/osx/plist.sh b/package/osx/plist.sh index 26332bc2f..898ae3be2 100644 --- a/package/osx/plist.sh +++ b/package/osx/plist.sh @@ -1,47 +1,98 @@ #!/bin/bash function make_plist() { # Create information property list file (Info.plist). -echo '' >$plistfile -echo '' >>$plistfile -echo '' >>$plistfile -echo '' >>$plistfile -echo ' CFBundleExecutable' >>$plistfile -echo ' '$appname'' >>$plistfile -echo ' CFBundleGetInfoString' >>$plistfile -echo " Slic3r Copyright (C) 2011-$(date +%Y) Alessandro Ranellucci" >>$plistfile -echo ' CFBundleIconFile' >>$plistfile -echo ' Slic3r.icns' >>$plistfile -echo ' CFBundleName' >>$plistfile -echo ' Slic3r' >>$plistfile -echo ' CFBundleShortVersionString' >>$plistfile + +cat << EOF > $plistfile + + + + + CFBundleExecutable + $appname + CFBundleGetInfoString + Slic3r Copyright (C) 2011-$(date +%Y) Alessandro Ranellucci + CFBundleIconFile + Slic3r.icns + CFBundleName + Slic3r + CFBundleShortVersionString +EOF + if [ $TAGGED ]; then echo " Slic3r $SLIC3R_BUILD_ID" >>$plistfile -else +else echo " Slic3r $SLIC3R_BUILD_ID-$(git rev-parse --short head)" >>$plistfile fi -echo ' CFBundleIdentifier' >>$plistfile -echo ' org.slic3r.Slic3r' >>$plistfile -echo ' CFBundleInfoDictionaryVersion' >>$plistfile -echo ' 6.0' >>$plistfile -echo ' CFBundlePackageType' >>$plistfile -echo ' APPL' >>$plistfile -echo ' CFBundleSignature' >>$plistfile -echo ' ????' >>$plistfile -echo ' CFBundleVersion' >>$plistfile -echo " ${SLIC3R_BUILD_ID}" >>$plistfile -echo ' CFBundleTypeRole' >>$plistfile -echo ' Viewer' >>$plistfile -# Associate with a few file types (amf, stl, obj) -echo ' CFBundleTypeExtensions' >>$plistfile -echo ' ' >> $plistfile -echo ' stl ' >> $plistfile -echo ' amf ' >> $plistfile -echo ' obj ' >> $plistfile -echo ' ' >> $plistfile -echo ' LISsAppleDefaultForType ' >> $plistfile -echo ' CGDisableCoalescedUpdates' >>$plistfile -echo ' ' >>$plistfile -echo '' >>$plistfile -echo '' >>$plistfile + +cat << EOF >> $plistfile + CFBundleIdentifier + org.slic3r.$appname + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleVersion + ${SLIC3R_BUILD_ID} + CFBundleDocumentTypes + + + CFBundleTypeExtensions + + stl + STL + + CFBundleTypeIconFile + Slic3r.icns + CFBundleTypeName + STL + CFBundleTypeRole + Viewer + LISsAppleDefaultForType + + LSHandlerRank + Alternate + + + CFBundleTypeExtensions + + obj + OBJ + + CFBundleTypeIconFile + Slic3r.icns + CFBundleTypeName + STL + CFBundleTypeRole + Viewer + LISsAppleDefaultForType + + LSHandlerRank + Alternate + + + CFBundleTypeExtensions + + amf + AMF + + CFBundleTypeIconFile + Slic3r.icns + CFBundleTypeName + STL + CFBundleTypeRole + Viewer + LISsAppleDefaultForType + + LSHandlerRank + Alternate + + + LSMinimumSystemVersion + 10.7 + + +EOF }