aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 15:03:30 +0200
committerDavid Robillard <d@drobilla.net>2019-07-28 19:06:39 +0200
commitca2adc0ecbdf4694dcf062fcc14ea67510919963 (patch)
treefd2e4f5fd04e896581d5618a98e274f7d8b35631
parente1c3b14e51a9e0a390d3ce6dcba80e7ee0a9c02f (diff)
Mac: Set test app bundles as high resolution capable
This fixes the nasty title bar scaling.
-rw-r--r--resources/Info.plist.in20
-rw-r--r--wscript6
2 files changed, 26 insertions, 0 deletions
diff --git a/resources/Info.plist.in b/resources/Info.plist.in
new file mode 100644
index 0000000..a08dbd0
--- /dev/null
+++ b/resources/Info.plist.in
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>CFBundleIdentifier</key>
+ <string>net.drobilla.pugl.@NAME@</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>MinimumOSVersion</key>
+ <string>10.6</string>
+ <key>CFBundleDisplayName</key>
+ <string>@NAME@</string>
+ <key>CFBundleName</key>
+ <string>@NAME@</string>
+ <key>NSHighResolutionCapable</key>
+ <true/>
+ </dict>
+</plist>
diff --git a/wscript b/wscript
index d0697c2..2886958 100644
--- a/wscript
+++ b/wscript
@@ -159,6 +159,12 @@ def build(bld):
for prog in progs:
if bld.env.TARGET_PLATFORM == 'darwin':
target = '{0}.app/Contents/MacOS/{0}'.format(prog)
+
+ bld(features = 'subst',
+ source = 'resources/Info.plist.in',
+ target = '{}.app/Contents/Info.plist'.format(prog),
+ install_path = '',
+ NAME = prog)
else:
target = prog