Skip to content

Commit

Permalink
supply custom Info.plist for OMEdit
Browse files Browse the repository at this point in the history
connects ".mo" files to OMEdit on OS x
  • Loading branch information
hkiel committed Dec 13, 2016
1 parent a74d179 commit 1de0596
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions OMEdit/OMEditGUI/Info.plist
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>mo</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>@ICON@</string>
<key>CFBundleTypeName</key>
<string>Modelica Model</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
</dict>
</array>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>CFBundleIconFile</key>
<string>@ICON@</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleSignature</key>
<string>@TYPEINFO@</string>
<key>CFBundleExecutable</key>
<string>@EXECUTABLE@</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.@EXECUTABLE@</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions OMEdit/OMEditGUI/OMEditGUI.pro
Expand Up @@ -302,3 +302,5 @@ MOC_DIR = ../generatedfiles/moc
RCC_DIR = ../generatedfiles/rcc

ICON = Resources/icons/omedit.icns

QMAKE_INFO_PLIST = Info.plist

0 comments on commit 1de0596

Please sign in to comment.