Updating info.plist & build-macosx to have file extension registration.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
6d8a1de641
commit
265ad26eab
2 changed files with 45 additions and 3 deletions
|
@ -1,11 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Untested yet
|
|
||||||
rm $(find . -name "*.qmlc")
|
rm $(find . -name "*.qmlc")
|
||||||
rm $(find . -name "*.pyc")
|
rm $(find . -name "*.pyc")
|
||||||
python3 -m pip install -U pyinstaller
|
python3 -m pip install -U pyinstaller
|
||||||
iconutil -c icns "mac/logarithmplotter.iconset"
|
|
||||||
pyinstaller --add-data "LogarithmPlotter/qml:qml" \
|
pyinstaller --add-data "LogarithmPlotter/qml:qml" \
|
||||||
--add-data "LICENSE.md:." \
|
--add-data "LICENSE.md:." \
|
||||||
|
--add-data "mac/logarithmplotterfile.icns:." \
|
||||||
--add-data "README.md:." \
|
--add-data "README.md:." \
|
||||||
--exclude-module "FixTk" \
|
--exclude-module "FixTk" \
|
||||||
--exclude-module "tcl" \
|
--exclude-module "tcl" \
|
||||||
|
@ -19,3 +18,5 @@ pyinstaller --add-data "LogarithmPlotter/qml:qml" \
|
||||||
--osx-bundle-identifier eu.ad5001.logarithmplotter \
|
--osx-bundle-identifier eu.ad5001.logarithmplotter \
|
||||||
-n LogarithmPlotter \
|
-n LogarithmPlotter \
|
||||||
LogarithmPlotter/__init__.py
|
LogarithmPlotter/__init__.py
|
||||||
|
|
||||||
|
cp mac/Info.plist dist/LogarithmPlotter.app/Contents/Info.plist
|
||||||
|
|
|
@ -17,8 +17,49 @@
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>0.0.0</string>
|
<string>0.0.1</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<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>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
Loading…
Reference in a new issue