diff --git a/build-macosx.sh b/build-macosx.sh index 4e471da..d126d8c 100755 --- a/build-macosx.sh +++ b/build-macosx.sh @@ -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 diff --git a/mac/Info.plist b/mac/Info.plist index 03c2d9e..5b8f033 100644 --- a/mac/Info.plist +++ b/mac/Info.plist @@ -17,8 +17,49 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.0.0 + 0.0.1 NSHighResolutionCapable + UTExportedTypeDeclarations + + + UTTypeIdentifier + eu.ad5001.x-logarithm-plotter + UTTypeReferenceURL + https://git.ad5001.eu/Ad5001/LogarithmicPlotter/wiki/LogarithmPlotter-file-format-v1.0 + UTTypeDescription + Logarithm Plot File + UTTypeIconFile + logarithmplotterfile.icns + UTTypeConformsTo + + public.text + + UTTypeTagSpecification + + public.filename-extension + + lpf + lgg + + + + + + + CFBundleTypeRole + Editor + CFBundleTypeIconFile + logarithmplotterfile.icns + CFBundleTypeName + Logarithm Plot File + LSHandlerRank + Owner + LSItemContentTypes + + eu.ad5001.x-logarithm-plotter + + +