Skip to content

Suggestion: build app into binary instead of running Python directly #44

@ponleou

Description

@ponleou

Taking inspiration from #43, I suggest we could build the app into a binary using pyinstaller, and execute the binary directly instead of calling python on src/main.py. This has been something I've looked into for a while now, but only got it working with the latest pyinstaller release 2 days ago at v6.20. Before, it would have some issues with GLib 2.88.

The main motivation is so that I can do killall mixtapes to close the app, whereas before I would have to do killall python to close mixtapes, which would also kill any other python processes that were running. This is a command I run rather frequently because of the background player feature (closing the ui doesn't actually kill the process). I would imagine this would come with other pros and cons as well, which is why I want to suggest this first as a discussion.

As I said, I've gotten this to work now using a pyinstaller spec, so if this is a feature we are willing to have, I can quickly make a PR for review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions