Skip to content

Commit

Permalink
Enable high-DPI awareness in AIO, macOS, and Windows bundles. Note th…
Browse files Browse the repository at this point in the history
…at you can always disable that in the applications properties. Yet, Squeak is ready for high-DPI, even if the user has to choose zoom factor manually.
  • Loading branch information
marceltaeumel committed Jan 6, 2022
1 parent 91ee04c commit f8f39b9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prepare_bundle_aio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ cp "${ICONS_PATH}/${SMALLTALK_NAME}"*.icns "${RESOURCES_PATH}/"
ENGLISH_PATH="${MAC_TEMPLATE_PATH}/Squeak.app/Contents/Resources/English.lproj"
cp "${ENGLISH_PATH}/Credits.rtf" "${RESOURCES_PATH}/English.lproj/"
cp "${WIN_TEMPLATE_PATH}/Squeak.ini" "${VM_WIN_TARGET}/"
cp "${WIN_TEMPLATE_PATH}/Squeak.exe.manifest" "${VM_WIN_TARGET}/"
cp "${WIN_TEMPLATE_PATH}/Squeak.exe.manifest" "${VM_WIN_TARGET}/SqueakConsole.exe.manifest"

echo "...setting permissions..."
chmod +x \
Expand Down
2 changes: 2 additions & 0 deletions prepare_bundle_windows_x86.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ copy_resources "${BUNDLE_PATH}"

echo "...merging template..."
cp "${WIN_TEMPLATE_PATH}/Squeak.ini" "${BUNDLE_PATH}/"
cp "${WIN_TEMPLATE_PATH}/Squeak.exe.manifest" "${BUNDLE_PATH}/"
cp "${WIN_TEMPLATE_PATH}/Squeak.exe.manifest" "${BUNDLE_PATH}/SqueakConsole.exe.manifest"

echo "...setting permissions..."
chmod +x "${BUNDLE_PATH}/Squeak.exe"
Expand Down
4 changes: 4 additions & 0 deletions templates/macos/Squeak.app/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@
<string>SqueakOSXApplication</string>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>NSHighResolutionCapable</key>
<true/>
<key>NSHighResolutionMagnifyAllowed</key>
<true/>
<key>SqueakBrowserMouseCmdButton1</key>
<integer>3</integer>
<key>SqueakBrowserMouseCmdButton2</key>
Expand Down
31 changes: 31 additions & 0 deletions templates/windows/Squeak.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0"
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
name="www.opensmalltalk.org.Cog.Squeak"
type="win32"
/>
<description>Squeak Smalltalk Virtual Machine</description>
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</asmv3:windowsSettings>
</asmv3:application>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>

0 comments on commit f8f39b9

Please sign in to comment.