add verbose message with directory content

This commit is contained in:
David Refoua 2022-10-14 23:42:02 +03:30 committed by GitHub
parent a0827fb4f5
commit 50816c6bfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ Delete-Existing "..\Version*"
Delete-Existing "..\build\*"
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
@ -59,6 +59,11 @@ $saveTo = Resolve-Path $saveTo
$version = Get-VersionStr
(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()) {
Create-Archive $cmderRoot "$saveTo\$($t.Name)" $t.Value
$hash = (Digest-Hash "$saveTo\$($t.Name)")