d
This commit is contained in:
@@ -36,14 +36,15 @@ build-windows:
|
||||
- cmake -Bbuild -G "$CMAKE_GENERATOR" -DCMAKE_BUILD_TYPE="$CMAKE_BUILD_TYPE" -DCMAKE_PREFIX_PATH="$QT_PATH"
|
||||
- cmake --build build --config "$CMAKE_BUILD_TYPE"
|
||||
- Write-Host "package windows start..."
|
||||
- cd "build/bin"
|
||||
- cd build
|
||||
# 修复1: 使用引号包裹路径,避免反斜杠被解释
|
||||
- $QT_PATH\bin\windeployqt.exe .\OneLevelXmlOpr.exe
|
||||
- $files = Get-ChildItem -Recurse -Include *.exe, *.dll
|
||||
- Compress-Archive -Path $files -DestinationPath "$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip"
|
||||
- $QT_PATH/bin/windeployqt.exe bin/OneLevelXmlOpr.exe
|
||||
- >
|
||||
Get-ChildItem -Path ./bin -Recurse | \
|
||||
Compress-Archive -DestinationPath "$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip"
|
||||
artifacts:
|
||||
paths:
|
||||
- build/bin/$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip
|
||||
- build/$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip
|
||||
|
||||
create-release:
|
||||
stage: release
|
||||
|
||||
Reference in New Issue
Block a user