Skip to content

Commit

Permalink
#3943 add dpi settings in manifest file
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Sep 6, 2023
1 parent 49c17b8 commit 0c0f7e2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packaging/MSWindows/MINGW_BUILD.sh
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,12 @@ rm -fr share/xml
popd > /dev/null


echo "* Adding manifest"
for exe in Bug_Report GTK_info NativeGUI_info Screenshot Xpra-Launcher Xpra-Shadow Xpra Xpra_cmd; do
cp packaging/MSWindows/exe.manifest ./dist/${exe}.exe.manifest
done


echo "* Generating gdk pixbuf loaders.cache"
gdk-pixbuf-query-loaders.exe "dist/lib/gdk-pixbuf-2.0/2.10.0/loaders/*" | sed 's+".*dist/+"+g' > dist/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
echo "* Generating icons and theme cache"
Expand Down
17 changes: 17 additions & 0 deletions packaging/MSWindows/exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" uiAccess="false"></requestedExecutionLevel>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
<gdiScaling>false</gdiScaling>
</windowsSettings>
</application>
</assembly>

0 comments on commit 0c0f7e2

Please sign in to comment.