diff --git a/scripts/pack.ps1 b/scripts/pack.ps1 index 9cd2cb76..b41e8ca3 100644 --- a/scripts/pack.ps1 +++ b/scripts/pack.ps1 @@ -31,8 +31,8 @@ Param( # Path to the vendor configuration source file [string]$cmderRoot = "$PSScriptRoot\..", - # Using this option will pack artifacts for a specific included terminal emulator [conemu-maximus5, or windows-terminal] - [string]$emulator = 'conemu-maximus5', + # Using this option will pack artifacts for a specific included terminal emulator [all, conemu-maximus5, or windows-terminal] + [string]$emulator = 'all', # Vendor folder locaton [string]$saveTo = "$PSScriptRoot\..\build" @@ -50,8 +50,17 @@ if ($emulator -eq "windows-terminal") { "cmder_wt.zip" = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\conemu-maximus5`""; "cmder_wt_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\conemu-maximus5`""; } +} else if ($emulator -eq "windows-terminal") { + $targets = @{ + "cmder.7z" = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on -xr!`"vendor\windows-terminal`""; + "cmder.zip" = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\windows-terminal`""; + "cmder_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\windows-terminal`""; + } } else { $targets = @{ + "cmder_wt.7z" = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on -xr!`"vendor\conemu-maximus5`""; + "cmder_wt.zip" = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\conemu-maximus5`""; + "cmder_wt_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\conemu-maximus5`""; "cmder.7z" = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on -xr!`"vendor\windows-terminal`""; "cmder.zip" = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\windows-terminal`""; "cmder_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\windows-terminal`"";