@@ -81,29 +81,30 @@ jobs:
8181 $version = (Get-Content package.json | ConvertFrom-Json).version
8282 $timestamp = Get-Date -Format "yyyyMMdd-HHmmss"
8383
84- # Create metadata file
85- @ "
86- SVMSeek Wallet - Windows Native Build Artifacts
87- ===============================================
88- Version : $version
89- Build Date: $(Get-Date)
90- Build System: Windows (GitHub Actions)
91- Node Version: $(node --version)
84+ # Create metadata file using simple string concatenation
85+ $metadata = "SVMSeek Wallet - Windows Native Build Artifacts`n "
86+ $metadata += "===============================================`n"
87+ $metadata += "Version: $version`n"
88+ $metadata += "Build Date : $(Get-Date)`n"
89+ $metadata += " Build System: Windows (GitHub Actions)`n"
90+ $metadata += "Node Version: $(node --version)`n`n"
91+ $metadata += "Windows Native Packages:`n"
9292
93- Windows Native Packages:
94- $(Get-ChildItem -Recurse "native-builds/windows" -Include *.exe,*.msi | ForEach-Object {
95- $size = [math]::Round($_.Length / 1MB, 2)
96- "- $($_.Name): ${size}MB"
97- })
93+ if (Test-Path "native-builds/windows") {
94+ Get-ChildItem -Recurse "native-builds/windows" -Include *.exe,*.msi | ForEach-Object {
95+ $size = [math]::Round($_.Length / 1MB, 2)
96+ $metadata += "- $($_.Name): ${size}MB`n"
97+ }
98+ }
9899
99- Installation Instructions:
100- 1. NSIS Installer (.exe): Run and follow setup wizard
101- 2. Portable (.exe): Extract and run directly
102- 3. MSI Package (.msi): Use Windows Installer
100+ $metadata += "`nInstallation Instructions:`n"
101+ $metadata += "1. NSIS Installer (.exe): Run and follow setup wizard`n"
102+ $metadata += "2. Portable (.exe): Extract and run directly`n"
103+ $metadata += "3. MSI Package (.msi): Use Windows Installer`n`n"
104+ $metadata += "Distribution Ready: Yes`n"
105+ $metadata += "Digitally Signed: No (requires code signing certificate)"
103106
104- Distribution Ready: Yes
105- Digitally Signed: No (requires code signing certificate)
106- "@ | Out-File -FilePath "native-builds/windows/windows-build-metadata.txt" -Encoding UTF8
107+ $metadata | Out-File -FilePath "native-builds/windows/windows-build-metadata.txt" -Encoding UTF8
107108 shell : powershell
108109
109110 - name : Upload Windows native artifacts
0 commit comments