From ce1d791f7abc79da27ccda3b54d322be40380c95 Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 26 Apr 2025 17:07:43 +0200 Subject: [PATCH] Linux export --- Export.ps1 | 3 ++- Publish.ps1 | 13 ++++++++++--- export_presets.cfg | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Export.ps1 b/Export.ps1 index 3a559d31..2f14f1af 100644 --- a/Export.ps1 +++ b/Export.ps1 @@ -38,5 +38,6 @@ if (Test-Path $configFile) { } # Step 4: Export the build -& $godotPath --headless --export-release "Windows Desktop" "$buildDir\$fileName.exe" +& $godotPath --headless --export-release "Windows Desktop" "$buildDir\win\$fileName.exe" +& $godotPath --headless --export-release "Linux" "$buildDir\linux\$fileName.exe" \ No newline at end of file diff --git a/Publish.ps1 b/Publish.ps1 index 9c396010..2bb89ccc 100644 --- a/Publish.ps1 +++ b/Publish.ps1 @@ -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 \ No newline at end of file +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 \ No newline at end of file diff --git a/export_presets.cfg b/export_presets.cfg index 82686adb..760cd0f0 100644 --- a/export_presets.cfg +++ b/export_presets.cfg @@ -79,7 +79,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="" +export_path="build/linux/cirnoreason.x86_64" patches=PackedStringArray() encryption_include_filters="" encryption_exclude_filters=""