mirror of
https://github.com/cmderdev/cmder.git
synced 2025-07-07 04:59:03 +08:00
PR - Requested Changes
This commit is contained in:
@ -57,14 +57,14 @@ Param(
|
||||
[switch]$noVendor,
|
||||
|
||||
# Using this option will specify the emulator to use [all, conemu-maximus5, or windows-terminal]
|
||||
[string]$emulator = 'all',
|
||||
[string]$terminal = 'all',
|
||||
|
||||
# Build launcher if you have MSBuild tools installed
|
||||
[switch]$Compile
|
||||
)
|
||||
|
||||
# Get the scripts and cmder root dirs we are building in.
|
||||
$cmder_root = [string](Resolve-Path "$PSScriptRoot\..")
|
||||
$cmder_root = Resolve-Path "$PSScriptRoot\.."
|
||||
|
||||
# Dot source util functions into this scope
|
||||
. "$PSScriptRoot\utils.ps1"
|
||||
@ -137,9 +137,9 @@ if (-not $noVendor) {
|
||||
}
|
||||
|
||||
foreach ($s in $sources) {
|
||||
if ($s.name -eq "conemu-maximus5" -and $emulator -eq "windows-terminal") {
|
||||
if ($s.name -eq "conemu-maximus5" -and $terminal -eq "windows-terminal") {
|
||||
return
|
||||
} elseif ($s.name -eq "windows-terminal" -and $emulator -eq "conemu-maximus5") {
|
||||
} elseif ($s.name -eq "windows-terminal" -and $terminal -eq "conemu-maximus5") {
|
||||
return
|
||||
}
|
||||
|
||||
@ -156,8 +156,8 @@ if (-not $noVendor) {
|
||||
# Make Embedded Windows Terminal Portable
|
||||
if ($s.name -eq "windows-terminal") {
|
||||
$windowTerminalFiles = resolve-path ($saveTo + "\" + $s.name + "\terminal*")
|
||||
move-item -ErrorAction SilentlyContinue $windowTerminalFiles\* $s.name >$null
|
||||
remove-item -ErrorAction SilentlyContinue $windowTerminalFiles >$null
|
||||
move-item -ErrorAction SilentlyContinue $windowTerminalFiles\* $s.name >$null
|
||||
remove-item -ErrorAction SilentlyContinue $windowTerminalFiles >$null
|
||||
write-verbose "Making Windows Terminal Portable..."
|
||||
New-Item -Type Directory -Path (Join-Path $saveTo "/windows-terminal/settings") -ErrorAction SilentlyContinue >$null
|
||||
New-Item -Type File -Path (Join-Path $saveTo "/windows-terminal/.portable") -ErrorAction SilentlyContinue >$null
|
||||
|
Reference in New Issue
Block a user