Repository navigation
Guard the one-file build against deleting a folder build, and fix a misleading comment - #13
Merged
Merged
Conversation
…ame name Off Windows both layouts are named dist/GLEAPP, a file for --onefile and a folder otherwise, and PyInstaller's --noconfirm removes whatever is already there without a word. Measured: a --onefile build on top of a one-folder build logged "Removing dir dist/GLEAPP" and replaced 1,257 files with one, exit 0. In the signing workflow that folder can be the signed build waiting for phase 2. build_exe now checks the output path before pip or PyInstaller run and stops with a message naming --clean as the way to discard the other layout, in both directions. Three tests cover both refusals and the --clean bypass; the destructive scenario re-run end to end now exits 1 with the folder intact. Co-Authored-By: Claude Fable 5.1 <[email protected]>
It said the import was deferred so --version would not need a GUI lib, but desktop.main() never handled --version; packaging/entrypoint.py answers it before this module is imported. The deferral matters for a different reason: importing gleapp.desktop must not require pywebview, which is what lets the gleappGUI.py shim be tested without the desktop extra. The comment now says that. Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
Two follow-ups from #12.
dist/GLEAPP, and PyInstaller's--noconfirmremoves whatever is there without a word. Measured:exe --onefileon top of a folder build loggedRemoving dir dist/GLEAPPand replaced 1,257 files with one, exit 0. In the signing flow that folder can be the signed build waiting for phase 2. The driver now refuses in both directions before pip or PyInstaller run, naming--cleanas the way to discard the other layout. Three tests, and the destructive scenario re-run end to end now exits 1 with the folder intact.desktop.pysaidwebviewwas imported lazily so--versionwould not need a GUI lib, but nothing there handles--version;packaging/entrypoint.pydoes. The comment now says what the lazy import is actually for.🤖 Generated with Claude Code