Skip to content

Commit c36de5a

Browse files
Starfelllcraftablescience
authored andcommitted
fix(installer): use UTF-8 codepage, enable dpi awareness
1 parent 6e9c51d commit c36de5a

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,13 @@ function(vpkedit_configure_target TARGET)
9393
"$<$<CONFIG:Release>:/OPT:ICF>")
9494
endif()
9595

96-
# Add an icon to the executable
96+
# Add an icon and manifest to the executable
9797
if(TARGET_TYPE STREQUAL "EXECUTABLE")
9898
target_sources(
9999
${TARGET} PRIVATE
100100
"$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/src/shared/res/logo_alt.rc>"
101-
"$<$<NOT:$<CONFIG:Debug>>:${CMAKE_CURRENT_SOURCE_DIR}/src/shared/res/logo.rc>")
101+
"$<$<NOT:$<CONFIG:Debug>>:${CMAKE_CURRENT_SOURCE_DIR}/src/shared/res/logo.rc>"
102+
"${CMAKE_CURRENT_SOURCE_DIR}/src/gui/res/program.manifest")
102103
endif()
103104

104105
# Don't show the console when running the executable

src/gui/res/program.manifest

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
4+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
5+
<security>
6+
<requestedPrivileges>
7+
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
8+
</requestedPrivileges>
9+
</security>
10+
</trustInfo>
11+
12+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
13+
<windowsSettings>
14+
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
15+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
16+
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
17+
</windowsSettings>
18+
</application>
19+
20+
</assembly>

0 commit comments

Comments
 (0)