use 7z for deploy.
This commit is contained in:
parent
c846ae81a0
commit
28f2f60532
@ -6,6 +6,10 @@ on:
|
|||||||
- '**'
|
- '**'
|
||||||
tags-ignore:
|
tags-ignore:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
paths:
|
||||||
|
- '**.cpp'
|
||||||
|
- '**.h'
|
||||||
|
- '**.conf'
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
runs-on: [ubuntu-latest, ubuntu-24.04]
|
runs-on: [ubuntu-latest, ubuntu-24.04]
|
||||||
|
@ -5,6 +5,10 @@ on:
|
|||||||
- '**'
|
- '**'
|
||||||
tags-ignore:
|
tags-ignore:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
paths:
|
||||||
|
- '**.cpp'
|
||||||
|
- '**.h'
|
||||||
|
- '**.conf'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
BIN
resources/7za.exe
Normal file
BIN
resources/7za.exe
Normal file
Binary file not shown.
@ -25,8 +25,7 @@ if ($fileContent -match 'project\([^\)]+VERSION\s+([0-9]+\.[0-9]+)') {
|
|||||||
Write-Output "未找到版本号"
|
Write-Output "未找到版本号"
|
||||||
}
|
}
|
||||||
|
|
||||||
$deployPath = Join-Path -Path $buildPath -ChildPath "SmartLockerTools_v$version"
|
$deployPath = Join-Path -Path $buildPath -ChildPath "掌静脉工具v$version"
|
||||||
$zipFilePath = Join-Path -Path $buildPath -ChildPath "SmartLockerTools_v$version.zip"
|
|
||||||
$changelogPath = Join-Path -Path $buildPath -ChildPath "CHANGELOG.txt"
|
$changelogPath = Join-Path -Path $buildPath -ChildPath "CHANGELOG.txt"
|
||||||
|
|
||||||
function Build() {
|
function Build() {
|
||||||
@ -62,6 +61,9 @@ function Deploy() {
|
|||||||
& $qtHome\bin\windeployqt.exe $deployPath\$oldName --qmldir=$qtHome\qml
|
& $qtHome\bin\windeployqt.exe $deployPath\$oldName --qmldir=$qtHome\qml
|
||||||
Rename-Item -Path $deployPath\$oldName -NewName $deployPath\$newName
|
Rename-Item -Path $deployPath\$oldName -NewName $deployPath\$newName
|
||||||
}
|
}
|
||||||
|
Remove-Item -Path $deployPath\Qt6Quick3D*
|
||||||
|
Remove-Item -Path $deployPath\translations -Recurse -Force # 暂时不需要翻译文件
|
||||||
|
Remove-Item -Path $deployPath\qmltooling -Recurse -Force
|
||||||
|
|
||||||
$modules = "QmlCore"
|
$modules = "QmlCore"
|
||||||
foreach ($module in $modules) {
|
foreach ($module in $modules) {
|
||||||
@ -84,12 +86,14 @@ function Deploy() {
|
|||||||
Copy-Item -Path $boostRoot\lib\boost_$boost-vc143-mt-x64-1_86.dll -Destination $deployPath
|
Copy-Item -Path $boostRoot\lib\boost_$boost-vc143-mt-x64-1_86.dll -Destination $deployPath
|
||||||
}
|
}
|
||||||
|
|
||||||
$ffmpegs = "avcodec-61", "avdevice-61", "avfilter-10", "avformat-61", "avutil-59", "postproc-58", "swresample-5", "swscale-8"
|
$ffmpegs = "avcodec-61", "avdevice-61", "avformat-61", "avutil-59", "postproc-58", "swresample-5", "swscale-8" # avfilter-10
|
||||||
foreach ($ffmpeg in $ffmpegs) {
|
foreach ($ffmpeg in $ffmpegs) {
|
||||||
Copy-Item -Path $ffmpegRoot\bin\$ffmpeg.dll -Destination $deployPath
|
Copy-Item -Path $ffmpegRoot\bin\$ffmpeg.dll -Destination $deployPath
|
||||||
}
|
}
|
||||||
|
|
||||||
Compress-Archive -Path $deployPath -DestinationPath $zipFilePath -Force
|
$zipFilePath = Join-Path -Path $buildPath -ChildPath "掌静脉工具v$version.7z"
|
||||||
|
# Compress-Archive -Path $deployPath -DestinationPath $zipFilePath -Force
|
||||||
|
& resources\7za.exe a -t7z -mx=9 $zipFilePath $deployPath
|
||||||
}
|
}
|
||||||
|
|
||||||
function Clean() {
|
function Clean() {
|
||||||
|
Loading…
Reference in New Issue
Block a user