feat(build): 支持 Windows 应用程序清单文件配置 #10
Merged
韩天峰
merged 1 commits from windows-mainfest into master 2 months ago
4 changed files with 117 additions and 5 deletions
@ -0,0 +1,52 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> |
||||||
|
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> |
||||||
|
|
||||||
|
<!-- 程序集标识 --> |
||||||
|
<assemblyIdentity |
||||||
|
type="win32" |
||||||
|
name="AotCompiler.App" |
||||||
|
version="1.0.0.0" /> |
||||||
|
|
||||||
|
<!-- 信任信息 / UAC 权限级别 --> |
||||||
|
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> |
||||||
|
<security> |
||||||
|
<requestedPrivileges> |
||||||
|
<!-- |
||||||
|
asInvoker: 以当前用户权限运行(推荐默认值) |
||||||
|
highestAvailable: 请求当前用户能获得的最高权限 |
||||||
|
requireAdministrator: 要求管理员权限 |
||||||
|
--> |
||||||
|
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> |
||||||
|
</requestedPrivileges> |
||||||
|
</security> |
||||||
|
</trustInfo> |
||||||
|
|
||||||
|
<!-- 应用程序兼容性 --> |
||||||
|
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> |
||||||
|
<application> |
||||||
|
<!-- Windows 10 / 11 --> |
||||||
|
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> |
||||||
|
<!-- Windows 8.1 --> |
||||||
|
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" /> |
||||||
|
<!-- Windows 8 --> |
||||||
|
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" /> |
||||||
|
<!-- Windows 7 --> |
||||||
|
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" /> |
||||||
|
</application> |
||||||
|
</compatibility> |
||||||
|
|
||||||
|
<!-- DPI 感知(Windows 10 版本 1607+) --> |
||||||
|
<asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"> |
||||||
|
<asmv3:windowsSettings> |
||||||
|
<!-- |
||||||
|
PerMonitorV2: 逐显示器 DPI 感知 v2(推荐,支持混合模式 DPI 缩放) |
||||||
|
PerMonitor: 逐显示器 DPI 感知 v1 |
||||||
|
System: 系统 DPI 感知 |
||||||
|
None / 不设置: DPI 不感知(系统会自动缩放) |
||||||
|
--> |
||||||
|
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> |
||||||
|
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness> |
||||||
|
</asmv3:windowsSettings> |
||||||
|
</asmv3:application> |
||||||
|
|
||||||
|
</assembly> |
||||||
Loading…
Reference in new issue