Skip to content

Fix macOS build bundle structure, add ad-hoc code signatures to bundle#1

Open
berg wants to merge 7 commits intosigrokproject:masterfrom
berg:berg-fix-codesigning
Open

Fix macOS build bundle structure, add ad-hoc code signatures to bundle#1
berg wants to merge 7 commits intosigrokproject:masterfrom
berg:berg-fix-codesigning

Conversation

@berg
Copy link
Copy Markdown

@berg berg commented Dec 29, 2025

Hi @abraxa,

I hope that it's OK to submit a PR for this repo! I wanted to provide a few fixes to the macOS builds that make them more useful. I've tried to split the changes into a set of commits that explain each change, and to allow you to cherry pick any of the fixes you'd like. I am happy to make any changes you'd like, and also happy to help improve the builds and actions generally if that'd be helpful. It'd be very nice to have macos arm nightly builds of pulseview!

With this set of patches applied, the resulting builds have a valid ad-hoc code signatures (no identity attached, just integrity and a fingerprint) and are able to be manually allowlisted by macOS and run without modification. The current master branch's outputs are immediately killed with codesigning failures.

Here's the output of these patches: https://github.com/berg/sigrok-build/actions/runs/20578489417

(Ignore the fact that this is a slightly different branch; I had to apply one additional patch on top of this to get the action to pull from my forked repo, but you obviously don't want to apply that one. And also ignore the failing Linux builds, as I don't think I have access to pull those images from GHCR.)

Thanks for all of your hard work on this project, and let me know if I can do anything that'll make it easier for you to accept these. Cheers!

berg added 7 commits December 28, 2025 22:52
This is required for the structure of the bundle to be valid so the
codesigning tool doesn't fail when processing it
The embedded Python bundle in the resulting Pulseview binary is
subtly broken in a way that the codesign tool fails to sign it; this
should make it legible to the tool so we can produce signed binaries
This adds an anonymous ad-hoc signature to the app bundle, which lets
users who download the app allowlist it for execution
Move this down after the Python framework is normalized, etc., and
supply the right path to Qt's homebrew install
macOS 13 x86 images have been deprecated per Github:
actions/runner-images#13046
@ThrownToys
Copy link
Copy Markdown

@abraxa is it possible to get some movement on this one?

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