mirror of
https://github.com/cmderdev/cmder.git
synced 2024-11-10 17:59:11 +08:00
add pack code for windows terminal releases
This commit is contained in:
parent
8bb2c5d587
commit
e24f653d24
@ -31,6 +31,9 @@ Param(
|
|||||||
# Path to the vendor configuration source file
|
# Path to the vendor configuration source file
|
||||||
[string]$cmderRoot = "$PSScriptRoot\..",
|
[string]$cmderRoot = "$PSScriptRoot\..",
|
||||||
|
|
||||||
|
# Using this option will pack artifacts for a specific included terminal emulator [conemu-maximus5, or windows-terminal]
|
||||||
|
[string]$emulator = 'conemu-maximus5',
|
||||||
|
|
||||||
# Vendor folder locaton
|
# Vendor folder locaton
|
||||||
[string]$saveTo = "$PSScriptRoot\..\build"
|
[string]$saveTo = "$PSScriptRoot\..\build"
|
||||||
)
|
)
|
||||||
@ -41,10 +44,16 @@ $cmderRoot = Resolve-Path $cmderRoot
|
|||||||
$ErrorActionPreference = "Stop"
|
$ErrorActionPreference = "Stop"
|
||||||
Ensure-Executable "7z"
|
Ensure-Executable "7z"
|
||||||
|
|
||||||
$targets = @{
|
if ($emulator -eq "windows-terminal") {
|
||||||
"cmder.7z" = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on";
|
$targets = @{
|
||||||
"cmder.zip" = "-mm=Deflate -mfb=128 -mpass=3";
|
"cmder_wt.7z" = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on";
|
||||||
"cmder_mini.zip" = "-xr!`"vendor\git-for-windows`"";
|
"cmder_wt.zip" = "-mm=Deflate -mfb=128 -mpass=3";
|
||||||
|
"cmder_wt_mini.zip" = "-xr!`"vendor\git-for-windows`"";
|
||||||
|
} else {
|
||||||
|
$targets = @{
|
||||||
|
"cmder.7z" = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on";
|
||||||
|
"cmder.zip" = "-mm=Deflate -mfb=128 -mpass=3";
|
||||||
|
"cmder_mini.zip" = "-xr!`"vendor\git-for-windows`"";
|
||||||
}
|
}
|
||||||
|
|
||||||
Push-Location -Path $cmderRoot
|
Push-Location -Path $cmderRoot
|
||||||
|
Loading…
Reference in New Issue
Block a user