From 0d6b0d9d25c18686db568eb457529efe9d8ec6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Fri, 17 Mar 2023 23:33:02 +0800 Subject: [PATCH] update --- example/example.pro | 7 +++++-- scripts/windows-mingw-publish.ps1 | 2 +- scripts/windows-publish.ps1 | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/example/example.pro b/example/example.pro index 1322b06..ef42f84 100644 --- a/example/example.pro +++ b/example/example.pro @@ -28,11 +28,14 @@ CONFIG(debug,debug|release) { win32 { +!exists($$DESTDIR) { + mkpath($$DESTDIR) +} contains(QT_ARCH, i386) { - COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/bin/*.dll) $$DESTDIR + COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR QMAKE_POST_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) } else { - COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/bin/*.dll) $$DESTDIR + COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/*.dll) $$DESTDIR QMAKE_POST_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\) } diff --git a/scripts/windows-mingw-publish.ps1 b/scripts/windows-mingw-publish.ps1 index 1e811c3..170ff28 100644 --- a/scripts/windows-mingw-publish.ps1 +++ b/scripts/windows-mingw-publish.ps1 @@ -17,7 +17,7 @@ function Main() { New-Item -ItemType Directory $archiveName # 拷贝exe - Copy-Item bin\release\$targetName $archiveName\ + Copy-Item bin\release\* $archiveName\ # 拷贝依赖 windeployqt --qmldir . --plugindir $archiveName\plugins --no-translations --compiler-runtime $archiveName\$targetName # 删除不必要的文件 diff --git a/scripts/windows-publish.ps1 b/scripts/windows-publish.ps1 index d304d30..80432f3 100644 --- a/scripts/windows-publish.ps1 +++ b/scripts/windows-publish.ps1 @@ -27,7 +27,7 @@ function Main() { New-Item -ItemType Directory $archiveName # 拷贝exe - Copy-Item bin\release\$targetName $archiveName\ + Copy-Item bin\release\* $archiveName\ # 拷贝依赖 windeployqt --qmldir . --plugindir $archiveName\plugins --no-translations --compiler-runtime $archiveName\$targetName # 删除不必要的文件