update
parent
5f71ad57d0
commit
0d6b0d9d25
|
@ -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, /, \\)
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
# 删除不必要的文件
|
||||
|
|
|
@ -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
|
||||
# 删除不必要的文件
|
||||
|
|
Loading…
Reference in New Issue