mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-04 19:32:13 +08:00 
			
		
		
		
	add cmder slim
This commit is contained in:
		@@ -56,7 +56,7 @@ Param(
 | 
				
			|||||||
    # Using this option will skip all downloads, if you only need to build launcher
 | 
					    # Using this option will skip all downloads, if you only need to build launcher
 | 
				
			||||||
    [switch]$noVendor,
 | 
					    [switch]$noVendor,
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    # Using this option will specify the emulator to use [all, conemu-maximus5, or windows-terminal]
 | 
					    # Using this option will specify the emulator to use [none, all, conemu-maximus5, or windows-terminal]
 | 
				
			||||||
    [string]$terminal = 'all',
 | 
					    [string]$terminal = 'all',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Build launcher if you have MSBuild tools installed
 | 
					    # Build launcher if you have MSBuild tools installed
 | 
				
			||||||
@@ -137,7 +137,9 @@ if (-not $noVendor) {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    foreach ($s in $sources) {
 | 
					    foreach ($s in $sources) {
 | 
				
			||||||
        if ($s.name -eq "conemu-maximus5" -and $terminal -eq "windows-terminal") {
 | 
					        if ($terminal -eq "none") {
 | 
				
			||||||
 | 
					          return
 | 
				
			||||||
 | 
					        } elseif ($s.name -eq "conemu-maximus5" -and $terminal -eq "windows-terminal") {
 | 
				
			||||||
          return
 | 
					          return
 | 
				
			||||||
        } elseif ($s.name -eq "windows-terminal" -and $terminal -eq  "conemu-maximus5") {
 | 
					        } elseif ($s.name -eq "windows-terminal" -and $terminal -eq  "conemu-maximus5") {
 | 
				
			||||||
          return
 | 
					          return
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -31,7 +31,7 @@ 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 [all, conemu-maximus5, or windows-terminal]
 | 
					    # Using this option will pack artifacts for a specific included terminal emulator [none, all, conemu-maximus5, or windows-terminal]
 | 
				
			||||||
    [string]$terminal = 'all',
 | 
					    [string]$terminal = 'all',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Vendor folder locaton
 | 
					    # Vendor folder locaton
 | 
				
			||||||
@@ -44,7 +44,13 @@ $cmderRoot = Resolve-Path $cmderRoot
 | 
				
			|||||||
$ErrorActionPreference = "Stop"
 | 
					$ErrorActionPreference = "Stop"
 | 
				
			||||||
Ensure-Executable "7z"
 | 
					Ensure-Executable "7z"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ($terminal -eq "windows-terminal") {
 | 
					if ($terminal -eq "none") {
 | 
				
			||||||
 | 
					    $targets = @{
 | 
				
			||||||
 | 
					      "cmder_slim.7z"       = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on -xr!`"vendor\conemu-maximus5`" -xr!`"vendor\windows-terminal`"";
 | 
				
			||||||
 | 
					      "cmder_slim.zip"      = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\conemu-maximus5`" -xr!`"vendor\windows-terminal`"";
 | 
				
			||||||
 | 
					      "cmder_slim_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\conemu-maximus5`" -xr!`"vendor\windows-terminal`"";
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					} elseif ($terminal -eq "windows-terminal") {
 | 
				
			||||||
    $targets = @{
 | 
					    $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.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.zip"      = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\conemu-maximus5`"";
 | 
				
			||||||
@@ -58,6 +64,9 @@ if ($terminal -eq "windows-terminal") {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
} else {
 | 
					} else {
 | 
				
			||||||
    $targets = @{
 | 
					    $targets = @{
 | 
				
			||||||
 | 
					      "cmder_slim.7z"       = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on -xr!`"vendor\conemu-maximus5`" -xr!`"vendor\windows-terminal`"";
 | 
				
			||||||
 | 
					      "cmder_slim.zip"      = "-mm=Deflate -mfb=128 -mpass=3 -xr!`"vendor\conemu-maximus5`" -xr!`"vendor\windows-terminal`"";
 | 
				
			||||||
 | 
					      "cmder_slim_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\conemu-maximus5`" -xr!`"vendor\windows-terminal`"";
 | 
				
			||||||
      "cmder_wt.7z"       = "-t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -ms=on -myx=7 -mqs=on -xr!`"vendor\conemu-maximus5`"";
 | 
					      "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.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_wt_mini.zip" = "-xr!`"vendor\git-for-windows`" -xr!`"vendor\conemu-maximus5`"";
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user