#!/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 echo " Slic3r $SLIC3R_BUILD_ID" >>$plistfile cat << EOF >> $plistfile CFBundleIdentifier org.slic3r.$appname CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType APPL CFBundleSignature ???? CFBundleVersion ${SLIC3R_BUILD_ID} CFBundleDocumentTypes CFBundleTypeExtensions stl STL CFBundleTypeIconFile stl.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 CFBundleTypeExtensions gcode GCODE CFBundleTypeIconFile gcode.icns CFBundleTypeName GCODE CFBundleTypeRole Editor LISsAppleDefaultForType LSHandlerRank Alternate LSMinimumSystemVersion 10.7 NSPrincipalClass NSApplication NSHighResolutionCapable EOF }