diff --git a/3rdparty/TaoCommon/Frameless/TaoFrameLessView_win.cpp b/3rdparty/TaoCommon/Frameless/TaoFrameLessView_win.cpp index e0d6025..7a49ac8 100644 --- a/3rdparty/TaoCommon/Frameless/TaoFrameLessView_win.cpp +++ b/3rdparty/TaoCommon/Frameless/TaoFrameLessView_win.cpp @@ -11,8 +11,6 @@ #include #include -#pragma comment(lib, "Dwmapi.lib") // Adds missing library, fixes error LNK2019: unresolved -#pragma comment(lib, "User32.lib") // we cannot just use WS_POPUP style // WS_THICKFRAME: without this the window cannot be resized and so aero snap, de-maximizing and minimizing won't work // WS_SYSMENU: enables the context menu with the move, close, maximize, minize... commands (shift + right-click on the task bar item) diff --git a/3rdparty/TaoCommon/TaoCommon.pri b/3rdparty/TaoCommon/TaoCommon.pri index 8e419ea..ee24258 100644 --- a/3rdparty/TaoCommon/TaoCommon.pri +++ b/3rdparty/TaoCommon/TaoCommon.pri @@ -35,6 +35,8 @@ SOURCES += \ win32 { SOURCES += \ $$PWD/Frameless/TaoFrameLessView_win.cpp +LIBS += -lDwmapi -lUser32 + } else { SOURCES += \ $$PWD/Frameless/TaoFrameLessView_unix.cpp diff --git a/TaoQuick.pro b/TaoQuick.pro index 8238e97..0645c64 100644 --- a/TaoQuick.pro +++ b/TaoQuick.pro @@ -37,4 +37,5 @@ OTHER_FILES += *.md \ _clang-format \ .qmake.conf \ .github/workflows/* \ + scripts/* \ mkspecs/features/* diff --git a/scripts/windows-publish.ps1 b/scripts/windows-publish.ps1 index 21918b2..6bd5be7 100644 --- a/scripts/windows-publish.ps1 +++ b/scripts/windows-publish.ps1 @@ -30,7 +30,6 @@ function Main() { New-Item -ItemType Directory $archiveName # 拷贝exe Copy-Item bin\release\$targetName $archiveName\ - Copy-Item bin\release\Trans $archiveName\Trans -Recurse # 拷贝依赖 windeployqt --qmldir . --plugindir $archiveName\plugins --no-translations --compiler-runtime $archiveName\$targetName # 删除不必要的文件