# Build S³ and package a drag-install zip for Forgejo downloads. # .\dist\build-release.ps1 # Produces dist\SetonsSpecialSauce-.zip with the layout: # S3/Info.json # S3/S3.dll # S3/RRPopout.dll (when the native module is present) param( [string]$Configuration = "Release" ) . (Join-Path $PSScriptRoot "build-common.ps1") $managed = Invoke-ManagedBuild -Configuration $Configuration $native = Invoke-NativeBuild -Configuration $Configuration $stageRoot = Join-Path $PSScriptRoot "stage" $modDir = Join-Path $stageRoot $ModId if (Test-Path $stageRoot) { Remove-Item $stageRoot -Recurse -Force } New-Item -ItemType Directory -Force -Path $stageRoot | Out-Null New-ModLayout -DestModDir $modDir -ManagedDll $managed -NativeDll $native $version = Get-ModVersion $zip = Join-Path $PSScriptRoot "SetonsSpecialSauce-$version.zip" if (Test-Path $zip) { Remove-Item $zip -Force } # Zip the S3 folder itself so the archive root contains S3\ — what UMM expects. Compress-Archive -Path $modDir -DestinationPath $zip -Force Write-Host "=== Release zip ready: $zip ===" -ForegroundColor Green