This commit is contained in:
parent
27e5db45d6
commit
d6a36c0450
@ -20,4 +20,4 @@ jobs:
|
||||
with:
|
||||
body_path: build/CHANGELOG.txt
|
||||
files: |-
|
||||
build/AntiClipSettings.zip
|
||||
build/视觉防夹设备上位机工具*.zip
|
@ -40,7 +40,7 @@ Application::Application(int &argc, char **argv)
|
||||
font.setFamily("微软雅黑");
|
||||
m_app->setFont(font);
|
||||
m_app->setApplicationName(APPLICATION_NAME);
|
||||
m_app->setApplicationVersion(QString("V%1").arg(APP_VERSION));
|
||||
m_app->setApplicationVersion(QString("v%1").arg(APP_VERSION));
|
||||
m_player->open();
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user