#!/bin/bash function make_plist() { # Create information property list file (Info.plist). 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 echo " Slic3r $SLIC3R_BUILD_ID-$(git rev-parse --short head)" >>$plistfile fi 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 NSPrincipalClass NSApplication NSHighResolutionCapable EOF }