diff --git a/pack-dist.ps1 b/pack-dist.ps1 index 3517afb..2f9b8fe 100644 --- a/pack-dist.ps1 +++ b/pack-dist.ps1 @@ -106,7 +106,13 @@ foreach ($dir in 'AUDIO', 'GAUGE', 'VIDEO') { # engine's LoadSBK path died with the sound cards, and AUDIO.INI's # [AudioResources] section is commented out along with it. Shipping them adds # 7MB to every download for nothing. -Get-ChildItem "$dist\AUDIO" -Filter 'AUDIO?.RES' | Remove-Item +# +# Named explicitly, NOT matched with a wildcard: 'AUDIO?.RES' also catches +# AUDIO.RES, because a Windows '?' will happily match zero characters. +# +foreach ($bank in 'AUDIO1.RES', 'AUDIO2.RES') { + Remove-Item "$dist\AUDIO\$bank" -ErrorAction SilentlyContinue +} foreach ($file in 'RPDPL.INI', 'JOYSTICK.INI', 'RPL4.RES', 'TEST.EGG', 'libsndfile-1.dll', 'oalinst.exe') { Copy-Item (Join-Path $assets $file) $dist