自动编译脚本修正。

This commit is contained in:
2026-01-25 13:27:05 +08:00
parent 43712435c5
commit baedea9c1f

View File

@@ -38,7 +38,7 @@ build-windows:
- Write-Host "package windows start..." - Write-Host "package windows start..."
- cd "build/bin" - cd "build/bin"
# 修复1: 使用引号包裹路径,避免反斜杠被解释 # 修复1: 使用引号包裹路径,避免反斜杠被解释
- & "${QT_PATH}\bin\windeployqt.exe" "OneLevelXmlOpr.exe" - "${QT_PATH}/bin/windeployqt.exe OneLevelXmlOpr.exe"
# 修复2: 去掉 -Recurse 参数,或者使用正确的递归方法 # 修复2: 去掉 -Recurse 参数,或者使用正确的递归方法
- $files = Get-ChildItem -Filter "*.exe", "*.dll" - $files = Get-ChildItem -Filter "*.exe", "*.dll"
- Compress-Archive -Path $files -DestinationPath "$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip" - Compress-Archive -Path $files -DestinationPath "$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip"