exchanger-themes/preview-theme.ps1
Danil Iarosh ca52efbedc Initial commit: Exchanger Theme DLC Builder
Godot 4.7 project for authoring, previewing, validating, and building Exchanger PCK themes. Includes the example and space-pixel themes, binding contracts, editor tooling, validation/build scripts, and project documentation.
2026-09-22 11:43:13 +03:00

17 lines
553 B
PowerShell

param(
[string]$ThemeId = "space-pixel",
[string]$ThemeSource = "",
[string]$GodotExecutable = ""
)
$ErrorActionPreference = "Stop"
$projectRoot = (Resolve-Path $PSScriptRoot).Path
. (Join-Path $projectRoot "tools\Resolve-GodotExecutable.ps1")
$GodotExecutable = Resolve-ThemeGodotExecutable -GodotExecutable $GodotExecutable
& (Join-Path $projectRoot "tools\Select-Theme.ps1") -ThemeId $ThemeId -ThemeSource $ThemeSource
& $GodotExecutable --path $projectRoot
if ($LASTEXITCODE -ne 0) {
throw "Preview for theme '$ThemeId' failed."
}