This commit is contained in:
朱子楚\zhuzi
2023-09-29 17:39:45 +08:00
parent d8e3cf00b4
commit 674009e394
4 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ function Main() {
windeployqt --qmldir . --plugindir dist\plugins --no-translations --compiler-runtime dist\$targetName
# 删除不必要的文件
$excludeList = @("*.qmlc", "*.ilk", "*.exp", "*.lib", "*.pdb")
Remove-Item -Path $archiveName -Include $excludeList -Recurse -Force
Remove-Item -Path dist -Include $excludeList -Recurse -Force
# 打包zip
Compress-Archive -Path dist $archiveName'.zip'
}