Fix DoOtboy timed choices, validate UI endings and rename Katya

This commit is contained in:
Codex
2026-10-29 21:36:20 +02:00
parent 7906dc6cec
commit 59cc83c552
10 changed files with 603 additions and 144 deletions
+4 -1
View File
@@ -14,7 +14,10 @@ $presetPath = Join-Path $project 'export_presets.cfg'
$originalPreset = [IO.File]::ReadAllText($presetPath)
$localTemplate = Join-Path $projectRoot 'tools\templates\windows_release_x86_64.exe'
try {
if (-not (Test-Path -LiteralPath $localTemplate)) {
if (Test-Path -LiteralPath $localTemplate) {
$newPreset = $originalPreset.Replace('custom_template/release=""', 'custom_template/release="../tools/templates/windows_release_x86_64.exe"')
[IO.File]::WriteAllText($presetPath, $newPreset, [Text.UTF8Encoding]::new($false))
} else {
$newPreset = $originalPreset.Replace('custom_template/release="../tools/templates/windows_release_x86_64.exe"', 'custom_template/release=""')
[IO.File]::WriteAllText($presetPath, $newPreset, [Text.UTF8Encoding]::new($false))
}