减小打包体积。
This commit is contained in:
@ -48,6 +48,13 @@ function Deploy() {
|
||||
New-Item $deployPath -ItemType Directory
|
||||
Copy-Item $buildPath\AntiClipSettings.exe $deployPath\AntiClipSettings.exe
|
||||
& $qtHome\bin\windeployqt.exe $deployPath\AntiClipSettings.exe --qmldir=$qtHome\qml
|
||||
Remove-Item -Path $deployPath\d3dcompiler_47.dll -Force
|
||||
Remove-Item -Path $deployPath\Qt5RemoteObjects.dll -Force
|
||||
Remove-Item -Path $deployPath\Qt5QuickTest.dll -Force
|
||||
Remove-Item -Path $deployPath\translations -Recurse -Force # 暂时不需要翻译文件
|
||||
Remove-Item -Path $deployPath\qmltooling -Recurse -Force
|
||||
Remove-Item -Path $deployPath\QtTest -Recurse -Force
|
||||
Remove-Item -Path $deployPath\QtGraphicalEffects -Recurse -Force
|
||||
|
||||
|
||||
# $modules = "QmlCore"
|
||||
@ -71,7 +78,8 @@ function Deploy() {
|
||||
Copy-Item -Path $boostRoot\lib\boost_$boost-vc143-mt-x64-1_83.dll -Destination $deployPath
|
||||
}
|
||||
|
||||
$ffmpegs = "avcodec-60", "avdevice-60", "avfilter-9", "avformat-60", "avutil-58", "postproc-57", "swresample-4", "swscale-7"
|
||||
# 暂时不需要 avfilter-9、avformat-60
|
||||
$ffmpegs = "avcodec-60", "avdevice-60", "avutil-58", "postproc-57", "swresample-4", "swscale-7"
|
||||
foreach ($ffmpeg in $ffmpegs) {
|
||||
Copy-Item -Path $ffmpegRoot\bin\$ffmpeg.dll -Destination $deployPath
|
||||
}
|
||||
|
Reference in New Issue
Block a user