Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/electron-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: The *.blockmap pattern only matches files ending exactly with .blockmap. Electron may also generate files with extensions like .blockmap.zip or other variants. Consider using a more comprehensive pattern like *blockmap* if needed.

[ -f "$file" ] && cp "$file" "../../release-assets/OmniRoute.exe"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: This loop will overwrite OmniRoute.exe with each iteration - only the LAST matching .exe file will remain. If multiple portable .exe files exist, only the last one copied will be preserved.

Consider breaking after the first match or explicitly selecting the correct portable exe.

done
fi
ls -la ../../release-assets/ || true

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: The ls -la command appears to be debug output. Consider removing this line before merging to keep the workflow clean, or ensure it's only run conditionally for debugging.


- name: Upload artifacts
uses: actions/upload-artifact@v4
Expand Down
Loading