mirror of
https://github.com/SignTools/SignTools.git
synced 2026-04-26 02:15:54 +03:00
[GH-ISSUE #411] SignTools-CI insert_dylib is not built with Apple Silicon support #101
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/SignTools#101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TJWeiten on GitHub (Mar 24, 2024).
Original GitHub issue: https://github.com/SignTools/SignTools/issues/411
!! Please fill in this template, DO NOT ignore or delete it. !!
I tried basic troubleshooting first
Describe the bug
Pretty simple bug that would only impact folks like me who are self-hosting their builder with SignTools-Builder, but the included
insert_dylibexecutable in the SignTools-CI repo is built for Intel processors and fails if run (as-is) on Apple Silicon.Logs
Resolution
Up to you how you want to handle this, but I went and rebuilt insert_dylib from source into a universal binary that should support Apple Silicon and Intel Macs. After replacing the default binary with my rebuilt one, I had no problem signing with my injected deb on my self-hosted builder on an M2 Mac.
However, I did not test that it would still work with GitHub Actions or Semaphore, which is obviously the much more common setup.
System configuration
@ViRb3 commented on GitHub (Mar 24, 2024):
I've switched Github Actions to use a M1 runner, so it definitely works. Just needs Rosetta installed for emulation, which you appear to be missing. Good suggestion though, can add a universal binary.