Update windows-publish.ps1

This commit is contained in:
xiaoyifang 2022-10-14 10:47:30 +08:00 committed by GitHub
parent 1077ccb82b
commit e4a083cccc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,6 +62,13 @@ function Main() {
$webengineqm="{0}\translations\qtwebengine_*.qm" -f $env:QTDIR.Trim()
Write-Host "copy qtwebengine qm from $($webengineqm)"
Copy-Item $webengineqm $archiveName\locale\
$multimedia="{0}\plugins\multimedia" -f $env:QTDIR.Trim()
if(Test-Path $multimedia){
Write-Host "copy multimedia $($multimedia) to plugins"
Copy-Item -Path $multimedia -Destination $archiveName\plugins -Recurse
}
Write-Host "compress zip..."
# 打包zip
Compress-Archive -Path $archiveName -DestinationPath $archiveName'.zip'