@@ -97,13 +97,13 @@ function Initialize-DirectoryStructure {
97
97
Packages = Join-Path $BaseDirectory " signed\packages"
98
98
}
99
99
100
- Write-Host " `n Creating directory structure..."
100
+ Write-Debug " `n Creating directory structure..."
101
101
# Only create the directories we'll manage
102
102
$directories.Keys | Where-Object { $_ -ne ' WorkingDir' } | ForEach-Object {
103
103
$dir = $directories [$_ ]
104
104
if (-not (Test-Path $dir )) {
105
105
New-Item - ItemType Directory - Path $dir - Force | Out-Null
106
- Write-Host " ✓ Created: $dir "
106
+ Write-Debug " ✓ Created: $dir "
107
107
}
108
108
}
109
109
@@ -158,6 +158,8 @@ How to use:
158
158
> . \.Yubico.NET.SDK\build\sign.ps1
159
159
4. The script can be invoked by following the examples below.
160
160
161
+ Set $DebugPreference = "Continue" for verbose output
162
+
161
163
. PARAMETER Thumbprint
162
164
The thumbprint of the signing certificate stored on the smart card.
163
165
@@ -307,7 +309,7 @@ function Invoke-NuGetPackageSigning {
307
309
Write-Host " Extracting to: $extractPath "
308
310
Expand-Archive - Path $package.FullName - DestinationPath $extractPath - Force
309
311
310
- Write-Host " Cleaning package structure"
312
+ Write-Debug " Cleaning package structure"
311
313
Get-ChildItem - Path $extractPath - Recurse - Include " _rels" , " package" | Remove-Item - Force - Recurse
312
314
Get-ChildItem - Path $extractPath - Recurse - Filter ' [Content_Types].xml' | Remove-Item - Force
313
315
@@ -377,7 +379,9 @@ function Invoke-NuGetPackageSigning {
377
379
}
378
380
379
381
Write-Host " `n ✨ Package signing process completed successfully! ✨" - ForegroundColor Green
380
- return $directories.Packages
382
+ Write-Host " ➡️ Locate your signed packages here: $ ( $directories.Packages ) " - ForegroundColor Yellow
383
+
384
+ return
381
385
}
382
386
catch {
383
387
Write-Host " `n ❌ Error occurred:" - ForegroundColor Red
0 commit comments