diff options
author | David Robillard <d@drobilla.net> | 2019-07-27 15:03:30 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-28 19:06:39 +0200 |
commit | ca2adc0ecbdf4694dcf062fcc14ea67510919963 (patch) | |
tree | fd2e4f5fd04e896581d5618a98e274f7d8b35631 | |
parent | e1c3b14e51a9e0a390d3ce6dcba80e7ee0a9c02f (diff) | |
download | pugl-ca2adc0ecbdf4694dcf062fcc14ea67510919963.tar.gz pugl-ca2adc0ecbdf4694dcf062fcc14ea67510919963.tar.bz2 pugl-ca2adc0ecbdf4694dcf062fcc14ea67510919963.zip |
Mac: Set test app bundles as high resolution capable
This fixes the nasty title bar scaling.
-rw-r--r-- | resources/Info.plist.in | 20 | ||||
-rw-r--r-- | wscript | 6 |
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> @@ -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 |