diff --git a/client/windows/runner/CMakeLists.txt b/client/windows/runner/CMakeLists.txt index 394917c..3c0ab97 100644 --- a/client/windows/runner/CMakeLists.txt +++ b/client/windows/runner/CMakeLists.txt @@ -36,5 +36,10 @@ target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") +# runner.exe.manifest 已声明 requestedExecutionLevel=requireAdministrator(UAC 提权, +# sing-box 子进程继承管理员权建 TUN)。关闭链接器自动注入的 UAC 清单(默认 asInvoker), +# 否则与 runner.exe.manifest 的 level 冲突,mt.exe 报 c1010001 → LINK : LNK1327。 +target_link_options(${BINARY_NAME} PRIVATE "/MANIFESTUAC:NO") + # Run the Flutter tool portions of the build. This must not be removed. add_dependencies(${BINARY_NAME} flutter_assemble)