mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 08:19:08 +08:00
create save to directory if it doesn't exist
This commit is contained in:
parent
2189fe9483
commit
28e42104ac
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user