File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,14 @@ jobs:
104104 if : contains(matrix.os, 'windows')
105105 shell : pwsh
106106 run : |
107- Compress-Archive -Path "target/${{ matrix.target }}/release/serial-monitor-rust.exe" -DestinationPath "serial-monitor-${{ matrix.target }}.exe.zip"
107+ $exePath1 = "target/${{ matrix.target }}/release/serial-monitor-rust.exe"
108+ $exePath2 = "target/release/serial-monitor-rust.exe"
109+ $exePath = if (Test-Path $exePath1) { $exePath1 } elseif (Test-Path $exePath2) { $exePath2 } else { "" }
110+ if ($exePath -eq "") {
111+ Write-Error "Executable not found"
112+ exit 1
113+ }
114+ Compress-Archive -Path $exePath -DestinationPath "serial-monitor-${{ matrix.target }}.exe.zip"
108115 Move-Item -Path "serial-monitor-${{ matrix.target }}.exe.zip" -Destination $env:GITHUB_WORKSPACE
109116
110117 - name : Compress Output (Windows .msi)
You can’t perform that action at this time.
0 commit comments