完善CI构建。
Some checks failed
Release tag / build (push) Failing after 49s

This commit is contained in:
2024-11-14 12:11:59 +08:00
parent 27e5db45d6
commit d6a36c0450
3 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,5 @@
param($type)
param($type)
# 该脚本设置为 UTF8-bom 编码即可支持中文
$MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Community\Common7\Tools\Launch-VsDevShell.ps1'
if (!(Test-Path $MsvcScript)) { $MsvcScript = 'D:\Program Files\Microsoft Visual Studio\2022\\Professional\Common7\Tools\Launch-VsDevShell.ps1' }
@ -24,8 +25,8 @@ if ($fileContent -match 'project\([^\)]+VERSION\s+([0-9]+\.[0-9]+)') {
Write-Output "未找到版本号"
}
$deployPath = Join-Path -Path $buildPath -ChildPath "AntiClipSettings_v$version"
$zipFilePath = Join-Path -Path $buildPath -ChildPath "AntiClipSettings_v$version.zip"
$deployPath = Join-Path -Path $buildPath -ChildPath "视觉防夹设备上位机工具v$version"
$zipFilePath = Join-Path -Path $buildPath -ChildPath "视觉防夹设备上位机工具v$version.zip"
$changelogPath = Join-Path -Path $buildPath -ChildPath "CHANGELOG.txt"
function Build() {
@ -46,8 +47,8 @@ function Deploy() {
Remove-Item $deployPath -Recurse -Force
}
New-Item $deployPath -ItemType Directory
Copy-Item $buildPath\AntiClipSettings.exe $deployPath\AntiClipSettings.exe
& $qtHome\bin\windeployqt.exe $deployPath\AntiClipSettings.exe --qmldir=$qtHome\qml
Copy-Item $buildPath\AntiClipSettings.exe $deployPath\视觉防夹设备上位机工具v$version.exe
& $qtHome\bin\windeployqt.exe $deployPath\视觉防夹设备上位机工具v$version.exe --qmldir=$qtHome\qml
Remove-Item -Path $deployPath\d3dcompiler_47.dll -Force
Remove-Item -Path $deployPath\Qt5RemoteObjects.dll -Force
Remove-Item -Path $deployPath\Qt5QuickTest.dll -Force