From 6d1fb82a35368f34d53d87ff489275c5953f47ba Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sun, 11 May 2025 22:21:22 +0800 Subject: [PATCH] update --- CMakeLists.txt | 4 ++++ src/main.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dfca9cb..23fb99c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,4 +18,8 @@ configure_file( ) add_executable(${PROJECT_NAME} ${SRC_CPP}) +if(WIN32) + target_link_options(${PROJECT_NAME} PRIVATE -mwindows -static) +endif() + target_link_libraries(${PROJECT_NAME} PRIVATE webview::core Threads::Threads) \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index aab1e8e..67b5786 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -77,9 +77,10 @@ std::string envKvToJsonString(const vpss_t &v){ return ss.str(); } -int main(const int argc,char *argv[],char *env[]){ +int main(const int argc,char *argv[]){ try { webview::webview wv(true,nullptr); + wv.set_title("eew -- Env viewer by Tudor"); wv.bind("getEnvString", [](const std::string &req)->std::string { std::cout<