Deploy: package.ps1 stages ALL conf templates, not two by name

vwetest.conf.tmpl was never staged, so fresh installs had no conf for the
test mode ("vwetest.conf not found under root"). Glob deploy\*.conf.tmpl
and log the staged set.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-07-17 07:06:42 -05:00
co-authored by Claude Fable 5
parent 72da9b2f14
commit a6713ec1bd
+6 -3
View File
@@ -57,9 +57,12 @@ $dlls = Get-ChildItem (Join-Path $dbDir '*.dll') -ErrorAction SilentlyContinue
if ($dlls) { $dlls | ForEach-Object { Copy-Item $_.FullName $root } ; Log "copied $($dlls.Count) DLL(s) beside dosbox-x.exe" }
else { Log "no DLLs beside dosbox-x.exe (static build -- only Windows system DLLs + Npcap's wpcap needed)" }
# conf templates + configure.ps1
Copy-Item (Join-Path $Emu 'deploy\net_loop.conf.tmpl') $root
Copy-Item (Join-Path $Emu 'deploy\net_rp.conf.tmpl') $root
# conf templates (ALL of them -- forgetting one strands its launch mode on
# fresh installs, as vwetest.conf.tmpl proved) + configure.ps1
$tmpls = Get-ChildItem (Join-Path $Emu 'deploy\*.conf.tmpl')
if (-not $tmpls) { throw "no conf templates in deploy\" }
$tmpls | ForEach-Object { Copy-Item $_.FullName $root }
Log "staged $($tmpls.Count) conf template(s): $(($tmpls | ForEach-Object BaseName) -join ', ')"
Copy-Item (Join-Path $Emu 'deploy\configure.ps1') (Join-Path $root 'deploy')
# AWE32 ROM