Add Linux build support (PyInstaller) / (made with Claude Code) - #28
Open
gchevignon wants to merge 2 commits into
Open
Add Linux build support (PyInstaller) / (made with Claude Code)#28gchevignon wants to merge 2 commits into
gchevignon wants to merge 2 commits into
Conversation
Add Linux build support (made by Claude code)
add linux GUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
python/build_linux.sh, a script that builds a standalone Linux binary using the existingdiynafluor.specPyInstaller config — which already has a dedicated non-macOS branch (used for the Windows build). No changes were needed tomain.pyorfluorometer.py: the app (Tkinter + matplotlib + pyserial + Pillow) is already fully cross-platform, and the only OS-specific code path (Windows DPI awareness) is already guarded bysys.platform == 'win32'.python/LINUX.mddocumenting two ways to use the app on Linux: running directly from source (python3 main.py), or building the standalone binary with the new script. Includes a note about adding the user to thedialoutgroup, which is required on most distros to access the Arduino's serial port.Why
The GUI currently only ships Windows and macOS (Apple Silicon) builds, but the underlying source was already portable. This adds the missing piece — a Linux build path — so Linux users (e.g. Raspberry Pi in field settings) can use the tool without modifying any code.
Test plan
./python/build_linux.shon Linux — binary built successfullydist/diynafluor, confirmed the GUI opens and theDEMOport produces simulated measurementsdialout)Notes for maintainers