Windows: add manifest file to indicate that we use UTF-8 and support Windows 10+

This commit is contained in:
李通洲
2022-12-20 22:40:06 +08:00
parent d21ce9b10f
commit 8f3900a9df
2 changed files with 28 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
<?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">
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--This Id value indicates the application supports Windows 7 functionality-->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!--This Id value indicates the application supports Windows 8 functionality-->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
<!--This Id value indicates the application supports Windows 8.1 functionality-->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!--This Id value indicates the application supports Windows 10, 11 functionality-->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
</compatibility>
<assemblyIdentity type="win32" name="com.github.fastfetch" version="0.0.0.0"/>
<asmv3:application>
<asmv3:windowsSettings>
<activeCodePage xmlns="http://schemas.microsoft.com/SMI/2019/WindowsSettings">UTF-8</activeCodePage>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<heapType xmlns="http://schemas.microsoft.com/SMI/2020/WindowsSettings">SegmentHeap</heapType>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
+5 -1
View File
@@ -1,6 +1,7 @@
//
// Include the necessary resources
//
#include <winuser.h>
#include <winver.h>
#include <ntdef.h>
#include "fastfetch_config.h"
@@ -16,7 +17,10 @@
#define VER_DEBUG 0
#endif
#define FF_TO_STR(str) #str
#define FF_TO_STR1(str) #str
#define FF_TO_STR(str) FF_TO_STR1(str)
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "manifest.xml"
// ------- version info -------------------------------------------------------