Linux export

This commit is contained in:
Marco 2025-04-26 17:07:43 +02:00
commit ce1d791f7a
3 changed files with 13 additions and 5 deletions

View file

@ -12,14 +12,21 @@ $PreReleaseLabel = $gitVersionOutput.PreReleaseLabelWithDash
$zipFileName = "$fileName.$fullSemVer.zip"
$zipFilePath = "$zipOutputDir\$zipFileName"
$zipFilePathLinux = "$zipOutputDir\$zipFileName"
# Zip the build folder
if (!(Test-Path $zipOutputDir)) {
New-Item -ItemType Directory -Path $zipOutputDir | Out-Null
}
Compress-Archive -Path "$buildDir\*" -DestinationPath $zipFilePath -Force
Compress-Archive -Path "$buildDir\win\*" -DestinationPath $zipFilePath -Force
Write-Host "Build completed and packaged as $zipFilePath"
Write-Host "Windows Build completed and packaged as $zipFilePath"
& $butlerPath push $zipFilePath maddoscientisto/cirno-no-reason:windows$PreReleaseLabel --userversion $fullSemVer
Compress-Archive -Path "$buildDir\linux\*" -DestinationPath $zipFilePathLinux -Force
Write-Host "Linux Build completed and packaged as $zipFilePathLinux"
& $butlerPath push $zipFilePath maddoscientisto/cirno-no-reason:windows$PreReleaseLabel --userversion $fullSemVer
& $butlerPath push $zipFilePathLinux maddoscientisto/cirno-no-reason:linux$PreReleaseLabel --userversion $fullSemVer