mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-21 09:23:47 +00:00
Build tweaks
This commit is contained in:
parent
68daf9c372
commit
40179c193d
5 changed files with 93 additions and 10 deletions
34
Publish-linux.ps1
Normal file
34
Publish-linux.ps1
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
$butlerPath = "F:\Apps\butler\butler.exe"
|
||||
$zipOutputDir = ".\release"
|
||||
$fileName = "Cirno_No_Reason"
|
||||
$gitVersionPath = "dotnet-gitversion.exe"
|
||||
$buildDir = ".\build"
|
||||
|
||||
$gitVersionOutput = & $gitVersionPath | ConvertFrom-Json
|
||||
$assemblySemFileVer = $gitVersionOutput.AssemblySemFileVer
|
||||
$assemblySemVer = $gitVersionOutput.AssemblySemVer
|
||||
$fullSemVer = $gitVersionOutput.FullSemVer
|
||||
$PreReleaseLabel = $gitVersionOutput.PreReleaseLabelWithDash
|
||||
|
||||
$zipFileName = "$fileName.$fullSemVer.win.zip"
|
||||
$zipFileNameLinux = "$fileName.$fullSemVer.linux.zip"
|
||||
$zipFilePath = "$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
|
||||
|
||||
#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"
|
||||
|
||||
#& $butlerPath push $zipFilePath maddoscientisto/cirno-no-reason:windows$PreReleaseLabel --userversion $fullSemVer
|
||||
|
||||
& $butlerPath push $zipFilePathLinux maddoscientisto/cirno-no-reason:linux$PreReleaseLabel --userversion $fullSemVer
|
||||
Loading…
Add table
Add a link
Reference in a new issue