Updating info.plist & build-macosx to have file extension registration.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Ad5001 2021-07-11 22:46:21 +02:00
parent 6d8a1de641
commit 265ad26eab
Signed by: Ad5001
GPG key ID: EF45F9C6AFE20160
2 changed files with 45 additions and 3 deletions

View file

@ -1,11 +1,10 @@
#!/usr/bin/env bash
# Untested yet
rm $(find . -name "*.qmlc")
rm $(find . -name "*.pyc")
python3 -m pip install -U pyinstaller
iconutil -c icns "mac/logarithmplotter.iconset"
pyinstaller --add-data "LogarithmPlotter/qml:qml" \
--add-data "LICENSE.md:." \
--add-data "mac/logarithmplotterfile.icns:." \
--add-data "README.md:." \
--exclude-module "FixTk" \
--exclude-module "tcl" \
@ -19,3 +18,5 @@ pyinstaller --add-data "LogarithmPlotter/qml:qml" \
--osx-bundle-identifier eu.ad5001.logarithmplotter \
-n LogarithmPlotter \
LogarithmPlotter/__init__.py
cp mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist

View file

@ -17,8 +17,49 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.0.0</string>
<string>0.0.1</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>eu.ad5001.x-logarithm-plotter</string>
<key>UTTypeReferenceURL</key>
<string>https://git.ad5001.eu/Ad5001/LogarithmicPlotter/wiki/LogarithmPlotter-file-format-v1.0</string>
<key>UTTypeDescription</key>
<string>Logarithm Plot File</string>
<key>UTTypeIconFile</key>
<string>logarithmplotterfile.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.text</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>lpf</string>
<string>lgg</string>
</array>
</dict>
</dict>
</array>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeIconFile</key>
<string>logarithmplotterfile.icns</string>
<key>CFBundleTypeName</key>
<string>Logarithm Plot File</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>eu.ad5001.x-logarithm-plotter</string>
</array>
</dict>
</array>
</dict>
</plist>