Skip to content

Package a macOS .app and .dmg from the one-folder build - #15

Merged
abrignoni merged 2 commits into
mainfrom
feat/macos-bundle
Sep 3, 2026
Merged

abrignoni merged 2 commits into
mainfrom
feat/macos-bundle

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Adds macOS packaging: phase 1 now also produces dist/GLEAPP.app on macOS, and phase 2 wraps it in dist/GLEAPP-<version>.dmg.

  • The spec wraps the one-folder build in a BUNDLE with the version read from gleapp/__init__.py and the identifier org.leapp.gleapp.app, the shape LAVA uses. No icon ships yet, so PyInstaller's default stands in until packaging/ has a gleapp.icns.
  • The driver's installer dispatches by platform: Inno Setup on Windows, a hdiutil UDZO image on macOS verified with hdiutil verify, and a plain refusal elsewhere. --sign-tool on macOS is refused with a pointer to codesign, which belongs after phase 1 because PyInstaller strips signatures while it builds.
  • The macOS CI leg builds the .dmg and checks the bundle's own binary and Info.plist.

Proven locally: the bundle's binary answers --version, its plist carries 0.1.0 and the identifier, and the 104 MB .dmg verifies.

Stacked on #14 so every file it touches is already LF; merge #13 and #14 first and this lands cleanly. It stays out of #13's hunks.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 3, 2026 00:51
40 tracked text files were LF and 18 were CRLF, none mixed, so every edit
made from a Mac or Linux had to detect and preserve the ending of the file
it touched or produce a whole-file diff. iLEAPP and ALEAPP are LF with no
attributes file; GLEAPP gets one so the rule is enforced on commit and on
checkout rather than remembered.

`* text=auto eol=lf` normalizes text; wheels, the ONNX model and images are
marked -text so normalization can never touch them. The 18 CRLF files are
renormalized here. Content is unchanged: git diff --ignore-cr-at-eol
against the parent is empty apart from .gitattributes itself.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The spec already built a bare executable on macOS; it now wraps the
one-folder build in GLEAPP.app through PyInstaller's BUNDLE, with the
version read from gleapp/__init__.py as text and the identifier
org.leapp.gleapp.app, the shape LAVA uses. No icon ships yet, so
PyInstaller's default stands in until packaging/ carries a gleapp.icns.
PyInstaller strips signatures while it builds, so codesign belongs after
phase 1, on the finished bundle.

The driver's installer phase now dispatches by platform: Inno Setup on
Windows as before, a UDZO disk image via hdiutil on macOS, verified with
hdiutil verify, and a plain refusal elsewhere. --sign-tool on macOS is
refused with a pointer to codesign, since it is an Inno Setup concept.

test_builds' macOS leg builds the .dmg and checks the bundle's own binary
and Info.plist. Proven locally: GLEAPP.app answers --version, its plist
carries 0.1.0 and the identifier, and the .dmg verifies.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@abrignoni
abrignoni merged commit bc62762 into main Sep 3, 2026
11 checks passed
@abrignoni
abrignoni deleted the feat/macos-bundle branch September 3, 2026 05:01
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