终版脚本。
This commit is contained in:
@@ -28,6 +28,8 @@ variables:
|
||||
build-windows:
|
||||
<<: *win
|
||||
stage: build
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
script:
|
||||
- Import-Module $VS_ENV
|
||||
- Enter-VsDevShell -VsInstallPath $VS_DIR -DevCmdArguments "-arch=$ARCH_TYPE"
|
||||
@@ -37,9 +39,9 @@ build-windows:
|
||||
- cd build/bin
|
||||
- Write-Host "windeployqt.exe Path is $QT_PATH/bin/windeployqt.exe"
|
||||
- >
|
||||
& "$QT_PATH/bin/windeployqt.exe" "$CMAKE_BUILD_TYPE/$PROJECT_NAME.exe"
|
||||
& "$QT_PATH/bin/windeployqt.exe" "$CMAKE_BUILD_TYPE/$PROJECT_NAME.exe" --no-system-dxc-compiler --no-translations --no-system-d3d-compiler
|
||||
- >
|
||||
Get-ChildItem -Path "$CMAKE_BUILD_TYPE" -Recurse | Compress-Archive -DestinationPath "$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip"
|
||||
Compress-Archive -Path "$CMAKE_BUILD_TYPE" -DestinationPath "$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip"
|
||||
artifacts:
|
||||
paths:
|
||||
- build/bin/$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip
|
||||
|
||||
Reference in New Issue
Block a user