build_linux_appimage.ps1 568 B

1234567891011
  1. $ErrorActionPreference = "Stop"
  2. Set-Location (Join-Path $PSScriptRoot "..")
  3. # Requires Docker Desktop (Linux engine) running.
  4. docker version --format "{{.Server.Version}}" | Out-Null
  5. if ($LASTEXITCODE -ne 0) { Write-Error "Docker daemon not reachable. Start Docker Desktop first."; exit 1 }
  6. New-Item -ItemType Directory -Force -Path dist\linux | Out-Null
  7. docker build -f Dockerfile.appimage --target export --output type=local,dest=dist/linux .
  8. if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
  9. Write-Host "AppImage written to dist\linux\SculptEngine-x86_64.AppImage"