diff options
author | R. van Twisk <ries.van.twisk@ing.com> | 2019-12-27 16:18:36 +0100 |
---|---|---|
committer | R. van Twisk <ries.van.twisk@ing.com> | 2019-12-27 16:18:36 +0100 |
commit | eda539bf149534fd9b65e8da585b4b4cdac72ac1 (patch) | |
tree | 28b27711dacc94f7947523aea02872b290ece9d3 /macosx | |
parent | 96317d82c4de2fefcdd295a275578e0c3154468d (diff) |
Increase resolution of Image shown in Finder.
Added NSDocumentsFolderUsageDescription and NSCameraUsageDescription to allow opentrack to the resources
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/Info.plist | 4 | ||||
-rwxr-xr-x | macosx/make-app-bundle.sh | 17 |
2 files changed, 16 insertions, 5 deletions
diff --git a/macosx/Info.plist b/macosx/Info.plist index 38b8e0e7..64572bf3 100644 --- a/macosx/Info.plist +++ b/macosx/Info.plist @@ -26,5 +26,9 @@ <string>NSApplication</string> <key>NSHighResolutionCapable</key> <string>True</string> + <key>NSCameraUsageDescription</key> + <string>OpenTrack need's to access your camera to capture track head position.</string> + <key>NSDocumentsFolderUsageDescription</key> + <string>OpenTrack need's to access your to your documents folder to store settings</string> </dict> </plist> diff --git a/macosx/make-app-bundle.sh b/macosx/make-app-bundle.sh index b58669e3..5453c2cc 100755 --- a/macosx/make-app-bundle.sh +++ b/macosx/make-app-bundle.sh @@ -35,13 +35,20 @@ cp "$dir/PkgInfo" "$install/$APPNAME.app/Contents/" cp "$dir/opentrack.sh" "$install/$APPNAME.app/Contents/MacOS/" sed -i '' -e "s#@OPENTRACK-VERSION@#$version#g" "$install/$APPNAME.app/Contents/Info.plist" || exit 1 +# Create an 512 resolution size (for retina displays mostly) +#gm convert -size 512x512 "$dir/../gui/images/opentrack.png" "$tmp/opentrack.png" +convert "$dir/../gui/images/opentrack.png" -filter triangle -resize 512x512 "$tmp/opentrack.png" + # Build iconset mkdir "$tmp/$APPNAME.iconset" || exit 1 -sips -z 16 16 "$dir/../gui/images/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_16x16.png" || exit 1 -sips -z 32 32 "$dir/../gui/images/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_16x16@2x.png" || exit 1 -sips -z 32 32 "$dir/../gui/images/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_32x32.png" || exit 1 -sips -z 64 64 "$dir/../gui/images/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_32x32@2x.png" || exit 1 -sips -z 128 128 "$dir/../gui/images/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_128x128.png" || exit 1 +sips -z 16 16 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_16x16.png" || exit 1 +sips -z 32 32 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_16x16@2x.png" || exit 1 +sips -z 32 32 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_32x32.png" || exit 1 +sips -z 64 64 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_32x32@2x.png" || exit 1 +sips -z 128 128 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_128x128.png" || exit 1 +sips -z 256 256 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_128x128@2x.png" || exit 1 +sips -z 512 512 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_256x256@2x.png" || exit 1 +sips -z 512 512 "$tmp/opentrack.png" --out "$tmp/$APPNAME.iconset/icon_512x512.png" || exit 1 iconutil -c icns -o "$install/$APPNAME.app/Contents/Resources/$APPNAME.icns" "$tmp/$APPNAME.iconset" rm -rf "$tmp" |