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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user