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.
This commit is contained in:
benzntech
2026-03-03 09:20:24 +05:30
parent 8152b030bf
commit 8d93c13f9a
+6 -1
View File
@@ -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