|
82 | 82 | cd frontend |
83 | 83 | npm run tauri build |
84 | 84 |
|
| 85 | + # Debug: List all files in bundle directory to see if .sig files were created |
| 86 | + - name: Debug - List bundle files |
| 87 | + run: | |
| 88 | + Write-Output "=== Checking if signing key is set ===" |
| 89 | + if ($env:TAURI_SIGNING_PRIVATE_KEY) { |
| 90 | + Write-Output "TAURI_SIGNING_PRIVATE_KEY is SET (length: $($env:TAURI_SIGNING_PRIVATE_KEY.Length))" |
| 91 | + } else { |
| 92 | + Write-Output "WARNING: TAURI_SIGNING_PRIVATE_KEY is NOT SET - signatures will be empty!" |
| 93 | + } |
| 94 | + |
| 95 | + Write-Output "`n=== Files in msi folder ===" |
| 96 | + Get-ChildItem -Path "frontend\src-tauri\target\release\bundle\msi" -Recurse | ForEach-Object { Write-Output $_.FullName } |
| 97 | + |
| 98 | + Write-Output "`n=== Files in nsis folder (if exists) ===" |
| 99 | + if (Test-Path "frontend\src-tauri\target\release\bundle\nsis") { |
| 100 | + Get-ChildItem -Path "frontend\src-tauri\target\release\bundle\nsis" -Recurse | ForEach-Object { Write-Output $_.FullName } |
| 101 | + } |
| 102 | + |
| 103 | + Write-Output "`n=== Looking for .sig files ===" |
| 104 | + Get-ChildItem -Path "frontend\src-tauri\target\release\bundle" -Recurse -Filter "*.sig" | ForEach-Object { |
| 105 | + Write-Output "Found signature: $($_.FullName)" |
| 106 | + Write-Output "Content: $(Get-Content $_.FullName -Raw)" |
| 107 | + } |
| 108 | +
|
85 | 109 | # Generate checksums for verification |
86 | 110 | - name: Generate checksums |
87 | 111 | run: | |
@@ -189,10 +213,23 @@ jobs: |
189 | 213 | run: | |
190 | 214 | $version = "${{ steps.get_version.outputs.version }}" |
191 | 215 | $tag = "${{ github.ref_name }}" |
192 | | - $msiSignature = "${{ steps.find_files.outputs.msi_signature }}" |
193 | 216 | $repo = "${{ github.repository }}" |
194 | 217 | $pubDate = Get-Date -Format "yyyy-MM-ddTHH:mm:ssZ" |
195 | 218 | |
| 219 | + # Try to read signature directly from file (more reliable than output variable) |
| 220 | + $sigPath = "frontend\src-tauri\target\release\bundle\msi\*.sig" |
| 221 | + $sigFiles = Get-ChildItem -Path $sigPath -ErrorAction SilentlyContinue |
| 222 | + |
| 223 | + $msiSignature = "" |
| 224 | + if ($sigFiles) { |
| 225 | + $msiSignature = (Get-Content $sigFiles[0].FullName -Raw).Trim() |
| 226 | + Write-Output "Found signature in file: $($sigFiles[0].FullName)" |
| 227 | + Write-Output "Signature (first 50 chars): $($msiSignature.Substring(0, [Math]::Min(50, $msiSignature.Length)))..." |
| 228 | + } else { |
| 229 | + Write-Output "WARNING: No .sig file found! Auto-update will NOT work." |
| 230 | + Write-Output "Make sure TAURI_SIGNING_PRIVATE_KEY secret is set in GitHub repository settings." |
| 231 | + } |
| 232 | + |
196 | 233 | # Get release notes (unescape the GitHub Actions encoding) |
197 | 234 | $releaseNotes = "${{ steps.release_notes.outputs.notes }}" |
198 | 235 | $releaseNotes = $releaseNotes -replace '%0A', "`n" |
|
0 commit comments