mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +08:00
add verbose message with directory content
This commit is contained in:
parent
a0827fb4f5
commit
50816c6bfc
@ -51,7 +51,7 @@ Delete-Existing "..\Version*"
|
|||||||
Delete-Existing "..\build\*"
|
Delete-Existing "..\build\*"
|
||||||
|
|
||||||
If(-not (Test-Path -PathType container $saveTo)) {
|
If(-not (Test-Path -PathType container $saveTo)) {
|
||||||
New-Item -ItemType Directory -Path $saveTo
|
(New-Item -ItemType Directory -Path $saveTo) | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
$saveTo = Resolve-Path $saveTo
|
$saveTo = Resolve-Path $saveTo
|
||||||
@ -59,6 +59,11 @@ $saveTo = Resolve-Path $saveTo
|
|||||||
$version = Get-VersionStr
|
$version = Get-VersionStr
|
||||||
(New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null
|
(New-Item -ItemType file "$cmderRoot\Version $version") | Out-Null
|
||||||
|
|
||||||
|
if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) {
|
||||||
|
Write-Verbose "Packing Cmder $version in $saveTo..."
|
||||||
|
dir $cmderRoot
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($t in $targets.GetEnumerator()) {
|
foreach ($t in $targets.GetEnumerator()) {
|
||||||
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
|
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
|
||||||
$hash = (Digest-Hash "$saveTo\$($t.Name)")
|
$hash = (Digest-Hash "$saveTo\$($t.Name)")
|
||||||
|
Loading…
Reference in New Issue
Block a user