From 8d93c13f9a2fb95c0ddcfa69ff278b0eaaf3c6a1 Mon Sep 17 00:00:00 2001 From: benzntech Date: Tue, 3 Mar 2026 09:20:24 +0530 Subject: [PATCH] fix: collect portable exe by pattern instead of hardcoded filename electron-builder produces 'OmniRoute 1.6.9.exe' (with version) as the portable exe, not 'OmniRoute.exe'. The hardcoded check failed, returning exit code 1 and breaking every Windows build in the release workflow. Now finds the portable exe by excluding 'Setup' (NSIS installer) and blockmap files, then copies it as OmniRoute.exe for the release assets. --- .github/workflows/electron-release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/electron-release.yml b/.github/workflows/electron-release.yml index 363950d7..f9b163d0 100644 --- a/.github/workflows/electron-release.yml +++ b/.github/workflows/electron-release.yml @@ -112,8 +112,13 @@ jobs: done # Windows: also copy portable standalone exe if [ "${{ matrix.platform }}" = "windows" ]; then - [ -f "OmniRoute.exe" ] && cp OmniRoute.exe ../../release-assets/ + for file in *.exe; do + # Skip the NSIS installer (contains "Setup") and blockmap files + case "$file" in *Setup*|*.blockmap) continue ;; esac + [ -f "$file" ] && cp "$file" "../../release-assets/OmniRoute.exe" + done fi + ls -la ../../release-assets/ || true - name: Upload artifacts uses: actions/upload-artifact@v4