Skip to content

Merge dev to master#2

Merged
Redstoneur merged 4 commits intomasterfrom
dev
Feb 18, 2026
Merged

Merge dev to master#2
Redstoneur merged 4 commits intomasterfrom
dev

Conversation

@Redstoneur
Copy link
Owner

This pull request introduces several improvements and refactors to the build system and macro storage logic for better cross-platform compatibility, more robust macro file handling, and improved playback lifecycle management. The highlights include a new manylinux-based build process for Linux, updates to the macro CSV format, and enhancements to the playback completion flow in the app.

Build system improvements:

  • Added a new build-manylinux.sh script to build Linux binaries in a manylinux container, including custom Python 3.14 installation and environment setup for compatibility and portability.
  • Updated GitHub Actions workflows (ci.yml and release.yml) to use the manylinux build process for Linux, and clarified steps for Windows, ensuring platform-specific dependency installation and builds. [1] [2]
  • Enhanced PyInstaller invocation in both build.sh (Linux/macOS) and build.ps1 (Windows) to explicitly include hidden imports for pynput backends, improving cross-platform support for keyboard and mouse event handling. [1] [2]

Macro CSV storage refactor:

  • Changed the macro CSV format: each event is now stored as a separate row with columns id, event_type, payload, and delay_ms, and the macro name is derived from the filename rather than stored in the file. This simplifies macro file handling and improves clarity. [1] [2]
  • Updated macro save/load logic in storage.py and app.py to align with the new format, removing interactive macro selection on load and always using the filename as the macro name. [1] [2] [3]

Playback lifecycle and UI enhancements:

  • Added an on_completion callback to the Player class, allowing the app to respond when playback finishes naturally (not manually stopped), and wired this to update the UI appropriately. [1] Fdef4e65L50R50, [2] [3]

Other updates:

  • Minor code style and documentation improvements, such as clarifying comments and function docstrings. [1] [2]

These changes collectively improve the reliability and portability of the build process, make macro files easier to work with, and ensure the UI stays in sync with playback state.

Introduce a manylinux-based Linux build and improve PyInstaller invocation for platform compatibility. Added build-manylinux.sh to compile and install Python 3.14.3 inside a manylinux_2_28 container, create a venv, install deps and run the existing build.sh inside the container. Update CI and release workflows to run setup-python and dependency installs only on Windows, and to run the manylinux Dockerized build for non-Windows runners. Adjust build.sh shebang to /bin/bash and add hidden-imports for pynput X11 backends; similarly add hidden-imports for pynput Win32 backends in build.ps1 to ensure PyInstaller collects required modules.
Switch CSV format to one event per row (fields: id, event_type, payload, delay_ms) and update storage functions accordingly. save_macro_to_csv now writes each MacroEvent on its own line with JSON-encoded payload; load_macros_from_csv reconstructs events and derives the macro name from the file stem, returning a single Macro. In the UI (app.py) macro naming no longer prompts the user: save/load derive the macro name from the filename and logging was updated; obsolete multi-macro selection logic was removed. Note: this changes the on-disk CSV schema and is not compatible with the previous single-row JSON "events" format.
Player now accepts an optional on_completion callback (CompletionFn) and invokes it when playback finishes naturally (it is skipped if playback was stopped manually). The App passes an _on_playback_complete handler that dispatches stop_playback to the Tk main thread via after(0). A "Playback completed" log message is emitted before the callback; docstrings and types were added to reflect the change.
@Redstoneur Redstoneur self-assigned this Feb 17, 2026
Copilot AI review requested due to automatic review settings February 17, 2026 23:54
Remove unused simpledialog import from tkinter in app.py and reformat the Player.__init__ signature in player.py to a multi-line layout for readability/PEP8 compliance. These are style-only changes and do not alter runtime behavior.
@Redstoneur Redstoneur review requested due to automatic review settings February 18, 2026 00:02
@Redstoneur Redstoneur merged commit 37382ac into master Feb 18, 2026
3 checks passed
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.

1 participant