Build tweaks

This commit is contained in:
Marco 2025-05-03 16:48:24 +02:00
commit 40179c193d
5 changed files with 93 additions and 10 deletions

View file

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