Skip to content

Fix macOS DMG build: add exclude_binaries=True to PyInstaller EXE block - #8

Merged
evildevill merged 2 commits into
mainfrom
copilot/fix-build-macos-dmg-job-again
Jul 25, 2026
Merged

Fix macOS DMG build: add exclude_binaries=True to PyInstaller EXE block#8
evildevill merged 2 commits into
mainfrom
copilot/fix-build-macos-dmg-job-again

Conversation

Copilot AI commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

The "Build macOS (DMG)" CI job was failing because playlistforge.macos.spec was missing exclude_binaries=True in its EXE block, causing PyInstaller to create dist/PlaylistForge as a self-contained onefile binary. The subsequent COLLECT step then failed when it tried to treat that file as a collectible resource directory:

ValueError: Resource '/Users/runner/.../dist/PlaylistForge' is not a valid file!

Change

  • packaging/pyinstaller/playlistforge.macos.spec: Added exclude_binaries=True to the EXE block, matching the pattern already used in playlistforge.linux.spec. This keeps the EXE stripped of bundled binaries so that COLLECT can assemble them into dist/PlaylistForge/, which BUNDLE then wraps into the final PlaylistForge.app.

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build macOS (DMG) Fix macOS DMG build: add exclude_binaries=True to PyInstaller EXE block Jul 25, 2026
Copilot AI requested a review from evildevill July 25, 2026 09:22
@evildevill
evildevill marked this pull request as ready for review July 25, 2026 09:23
Copilot AI review requested due to automatic review settings July 25, 2026 09:23
@evildevill
evildevill merged commit aa9dd56 into main Jul 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the failing “Build macOS (DMG)” GitHub Actions job by adjusting the macOS PyInstaller spec so COLLECT receives an onedir-style output (a directory) rather than a onefile-style output (a single executable file).

Changes:

  • Added exclude_binaries=True to the macOS EXE(...) block to keep binaries/data out of the EXE so COLLECT can assemble dist/PlaylistForge/ correctly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@evildevill
evildevill deleted the copilot/fix-build-macos-dmg-job-again branch July 25, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants