mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-10-31 09:22:15 +08:00 
			
		
		
		
	create save to directory if it doesn't exist
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| <# | ||||
| .Synopsis | ||||
|     Pack cmder | ||||
|     Pack Cmder | ||||
| .DESCRIPTION | ||||
|     Use this script to pack cmder into release archives | ||||
|  | ||||
| @@ -36,7 +36,6 @@ Param( | ||||
| ) | ||||
|  | ||||
| $cmderRoot = Resolve-Path $cmderRoot | ||||
| $saveTo = Resolve-Path $saveTo | ||||
|  | ||||
| . "$PSScriptRoot\utils.ps1" | ||||
| $ErrorActionPreference = "Stop" | ||||
| @@ -51,6 +50,12 @@ $targets = @{ | ||||
| Delete-Existing "..\Version*" | ||||
| Delete-Existing "..\build\*" | ||||
|  | ||||
| If(-not (Test-Path -PathType container $saveTo)) { | ||||
|       New-Item -ItemType Directory -Path $saveTo | ||||
| } | ||||
|  | ||||
| $saveTo = Resolve-Path $saveTo | ||||
|  | ||||
| $version = Get-VersionStr | ||||
| (New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user