Repository navigation
fix: Windows electron release — collect portable exe by pattern #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. WARNING: This loop will overwrite Consider breaking after the first match or explicitly selecting the correct portable exe. |
||
| done | ||
| fi | ||
| ls -la ../../release-assets/ || true | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SUGGESTION: The |
||
|
|
||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v4 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUGGESTION: The
*.blockmappattern only matches files ending exactly with.blockmap. Electron may also generate files with extensions like.blockmap.zipor other variants. Consider using a more comprehensive pattern like*blockmap*if needed.