feat: win代码同步

This commit is contained in:
2026-01-13 19:26:03 -08:00
parent 9a907f6531
commit 6ef08c9e7b
12 changed files with 586 additions and 205 deletions
+19
View File
@@ -1,10 +1,29 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<!-- 权限请求:应用以管理员权限运行,强制 UAC 提升 -->
<!-- ✅ TUN 模式默认权限方案:使用 requireAdministrator 模式
- 应用启动时自动弹出 UAC 提示(带盾牌图标)
- 用户同意后以管理员身份运行
- TUN 模式默认可用,无需额外权限检查
- 规则/系统代理模式在管理员身份下也可以运行
-->
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<!-- requireAdministrator: 强制以管理员身份运行(需要 UAC 提升) -->
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<!-- 启用高 DPI 感知,支持不同显示器的缩放 -->
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</windowsSettings>
</application>
<!-- 系统兼容性配置 -->
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Windows 10 and Windows 11 -->