Skip to content

Fix/macos py2app libsharpyuv (#587) - #2

Merged
joeraz merged 1 commit into
full-cardset-package-build-2from
master
Jul 21, 2026
Merged

Fix/macos py2app libsharpyuv (#587)#2
joeraz merged 1 commit into
full-cardset-package-build-2from
master

Conversation

@joeraz

@joeraz joeraz commented Jul 21, 2026

Copy link
Copy Markdown
Owner
  • Bundle libsharpyuv for macOS py2app build

py2app doesn't rewrite @rpath load commands, so libwebp's dependency on libsharpyuv (split out since webp 1.3) goes missing from the app bundle and PIL fails to import at launch. Bundle and patch it explicitly, same as the freecell-solver lib.

  • Re-sign macOS bundle after post-py2app dylib patching

install_name_tool invalidates py2app's ad-hoc signature, so a bundle patched after signing (e.g. the libsharpyuv fix, or the existing fc-solve rpath fix) gets silently SIGKILLed by macOS on launch. Verified locally: without this, the fixed app dies with no output at all: the patched dylib breaks the code signature seal.

* Bundle libsharpyuv for macOS py2app build

py2app doesn't rewrite @rpath load commands, so libwebp's dependency
on libsharpyuv (split out since webp 1.3) goes missing from the app
bundle and PIL fails to import at launch. Bundle and patch it
explicitly, same as the freecell-solver lib.

* Re-sign macOS bundle after post-py2app dylib patching

install_name_tool invalidates py2app's ad-hoc signature, so a bundle
patched after signing (e.g. the libsharpyuv fix, or the existing
fc-solve rpath fix) gets silently SIGKILLed by macOS on launch. Verified
locally: without this, the fixed app dies with no output at all: the
patched dylib breaks the code signature seal.
@joeraz
joeraz merged commit 7727f75 into full-cardset-package-build-2 Jul 21, 2026
13 of 15 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.

2 participants