From 00d5c068ba7d91921bdf2c3a5b50e5e1649e41ff Mon Sep 17 00:00:00 2001 From: taynpg Date: Sun, 25 Jan 2026 15:10:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=89=88=E8=84=9A=E6=9C=AC=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d54a7a5..fde34d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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