123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #!/bin/bash
- function make_plist() {
- # Create information property list file (Info.plist).
- cat << EOF > $plistfile
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
- <plist version="1.0">
- <dict>
- <key>CFBundleExecutable</key>
- <string>$appname</string>
- <key>CFBundleGetInfoString</key>
- <string>Slic3r Copyright (C) 2011-$(date +%Y) Alessandro Ranellucci</string>
- <key>CFBundleIconFile</key>
- <string>Slic3r.icns</string>
- <key>CFBundleName</key>
- <string>Slic3r</string>
- <key>CFBundleShortVersionString</key>
- EOF
- echo " <string>Slic3r $SLIC3R_BUILD_ID</string>" >>$plistfile
- cat << EOF >> $plistfile
- <key>CFBundleIdentifier</key>
- <string>org.slic3r.$appname</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>${SLIC3R_BUILD_ID}</string>
- <key>CFBundleDocumentTypes</key>
- <array>
- <dict>
- <key>CFBundleTypeExtensions</key>
- <array>
- <string>stl</string>
- <string>STL</string>
- </array>
- <key>CFBundleTypeIconFile</key>
- <string>stl.icns</string>
- <key>CFBundleTypeName</key>
- <string>STL</string>
- <key>CFBundleTypeRole</key>
- <string>Viewer</string>
- <key>LISsAppleDefaultForType</key>
- <true/>
- <key>LSHandlerRank</key>
- <string>Alternate</string>
- </dict>
- <dict>
- <key>CFBundleTypeExtensions</key>
- <array>
- <string>obj</string>
- <string>OBJ</string>
- </array>
- <key>CFBundleTypeIconFile</key>
- <string>Slic3r.icns</string>
- <key>CFBundleTypeName</key>
- <string>STL</string>
- <key>CFBundleTypeRole</key>
- <string>Viewer</string>
- <key>LISsAppleDefaultForType</key>
- <true/>
- <key>LSHandlerRank</key>
- <string>Alternate</string>
- </dict>
- <dict>
- <key>CFBundleTypeExtensions</key>
- <array>
- <string>amf</string>
- <string>AMF</string>
- </array>
- <key>CFBundleTypeIconFile</key>
- <string>Slic3r.icns</string>
- <key>CFBundleTypeName</key>
- <string>STL</string>
- <key>CFBundleTypeRole</key>
- <string>Viewer</string>
- <key>LISsAppleDefaultForType</key>
- <true/>
- <key>LSHandlerRank</key>
- <string>Alternate</string>
- </dict>
- <dict>
- <key>CFBundleTypeExtensions</key>
- <array>
- <string>gcode</string>
- <string>GCODE</string>
- </array>
- <key>CFBundleTypeIconFile</key>
- <string>gcode.icns</string>
- <key>CFBundleTypeName</key>
- <string>GCODE</string>
- <key>CFBundleTypeRole</key>
- <string>Editor</string>
- <key>LISsAppleDefaultForType</key>
- <true/>
- <key>LSHandlerRank</key>
- <string>Alternate</string>
- </dict>
- </array>
- <key>LSMinimumSystemVersion</key>
- <string>10.7</string>
- <key>NSPrincipalClass</key>
- <string>NSApplication</string>
- <key>NSHighResolutionCapable</key>
- <true/>
- </dict>
- </plist>
- EOF
- }
|