|
43 | 43 | ${{ runner.os }}-yarn- |
44 | 44 | |
45 | 45 | - name: Install dependencies |
46 | | - run: yarn install --frozen-lockfile |
| 46 | + shell: bash |
| 47 | + run: | |
| 48 | + for i in 1 2 3; do |
| 49 | + yarn install --frozen-lockfile && break || sleep 10 |
| 50 | + done |
47 | 51 | |
48 | 52 | - name: Build web application |
49 | 53 | run: yarn build |
@@ -77,29 +81,30 @@ jobs: |
77 | 81 | $version = (Get-Content package.json | ConvertFrom-Json).version |
78 | 82 | $timestamp = Get-Date -Format "yyyyMMdd-HHmmss" |
79 | 83 | |
80 | | - # Create metadata file |
81 | | - @" |
82 | | - SVMSeek Wallet - Windows Native Build Artifacts |
83 | | - =============================================== |
84 | | - Version: $version |
85 | | - Build Date: $(Get-Date) |
86 | | - Build System: Windows (GitHub Actions) |
87 | | - 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" |
88 | 92 | |
89 | | - Windows Native Packages: |
90 | | - $(Get-ChildItem -Recurse "native-builds/windows" -Include *.exe,*.msi | ForEach-Object { |
91 | | - $size = [math]::Round($_.Length / 1MB, 2) |
92 | | - "- $($_.Name): ${size}MB" |
93 | | - }) |
| 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 | + } |
94 | 99 | |
95 | | - Installation Instructions: |
96 | | - 1. NSIS Installer (.exe): Run and follow setup wizard |
97 | | - 2. Portable (.exe): Extract and run directly |
98 | | - 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)`n" |
99 | 106 | |
100 | | - Distribution Ready: Yes |
101 | | - Digitally Signed: No (requires code signing certificate) |
102 | | - "@ | 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 |
103 | 108 | shell: powershell |
104 | 109 |
|
105 | 110 | - name: Upload Windows native artifacts |
|
0 commit comments