终版脚本。
This commit is contained in:
@@ -28,6 +28,8 @@ variables:
|
|||||||
build-windows:
|
build-windows:
|
||||||
<<: *win
|
<<: *win
|
||||||
stage: build
|
stage: build
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
script:
|
script:
|
||||||
- Import-Module $VS_ENV
|
- Import-Module $VS_ENV
|
||||||
- Enter-VsDevShell -VsInstallPath $VS_DIR -DevCmdArguments "-arch=$ARCH_TYPE"
|
- Enter-VsDevShell -VsInstallPath $VS_DIR -DevCmdArguments "-arch=$ARCH_TYPE"
|
||||||
@@ -37,9 +39,9 @@ build-windows:
|
|||||||
- cd build/bin
|
- cd build/bin
|
||||||
- Write-Host "windeployqt.exe Path is $QT_PATH/bin/windeployqt.exe"
|
- 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:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/bin/$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip
|
- build/bin/$PROJECT_NAME-v$PROJECT_VERSION-win-$ARCH_TYPE.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user