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

@ -11,10 +11,11 @@ if (Test-Path $buildDir) {
Remove-Item "$buildDir\*" -Recurse -Force
} else {
New-Item -ItemType Directory -Path $buildDir | Out-Null
New-Item -ItemType Directory -Path $buildDir\win | Out-Null
New-Item -ItemType Directory -Path $buildDir\linux | Out-Null
}
New-Item -ItemType Directory -Path $buildDir\win | Out-Null
New-Item -ItemType Directory -Path $buildDir\linux | Out-Null
# Step 2: Get version data from GitVersion
$gitVersionOutput = & $gitVersionPath | ConvertFrom-Json
$assemblySemFileVer = $gitVersionOutput.AssemblySemFileVer
@ -41,6 +42,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.x86_64"
& $godotPath --headless --export-release "Windows Desktop" "$buildDir\win\$fileName.exe"
& $godotPath --headless --export-release "Linux" "$buildDir\linux\$fileName"
#& $godotPath --headless --export-release "Linux" "$buildDir\linux\$fileName.x86_64"