Skip to content

Guard the one-file build against deleting a folder build, and fix a misleading comment - #13

Merged
abrignoni merged 2 commits into
mainfrom
chore/build-follow-ups
Sep 3, 2026
Merged

abrignoni merged 2 commits into
mainfrom
chore/build-follow-ups

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Two follow-ups from #12.

  • Off Windows the one-file and one-folder outputs are both dist/GLEAPP, and PyInstaller's --noconfirm removes whatever is there without a word. Measured: exe --onefile on top of a folder build logged Removing dir dist/GLEAPP and 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 --clean as 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.py said webview was imported lazily so --version would not need a GUI lib, but nothing there handles --version; packaging/entrypoint.py does. The comment now says what the lazy import is actually for.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 3, 2026 00:28
…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]>
@abrignoni
abrignoni merged commit 9c79d84 into main Sep 3, 2026
11 checks passed
@abrignoni
abrignoni deleted the chore/build-follow-ups branch September 3, 2026 04:50
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