Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dylibbundler to copy and resign libs to support local native arm64 builds. #71314

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

akrieger
Copy link
Member

@akrieger akrieger commented Jan 28, 2024

Summary

Build "Use dylibbundler for mac builds"

Purpose of change

The default build setup does not work out of the box on a fresh arm mac. The issue seems to be gaps with the copy mac libs step. It misses some dylibs and doesn't resign them as needed to run on a mac arm.

Describe the solution

dylibbundler is a third party program for this exact purpose. It seems to implement better logic for finding dylibs, and also handles code resigning for arm macs.

Describe alternatives you've considered

Testing

make app on my mac, and I can immediately successfully run the built app. Push to my master branch, download the dmg release build, and it runs too (https://github.com/akrieger/Cataclysm-DDA/releases/tag/cdda-experimental-2024-01-28-1409).

Additional context

Need to also update the homebrew bottle after this.

@akrieger akrieger requested a review from BrettDong January 28, 2024 14:02
@github-actions github-actions bot added Code: Build Issues regarding different builds and build environments [Python] Code made in Python Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Jan 28, 2024
@akrieger akrieger changed the title Use dylibbundler to copy and resign libs for native arm64 builds. Use dylibbundler to copy and resign libs to support local native arm64 builds. Jan 28, 2024
@akrieger akrieger marked this pull request as ready for review January 28, 2024 15:12
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto-requesting reviews from non-collaborators: @jbytheway

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jan 28, 2024
@ZhilkinSerg ZhilkinSerg merged commit e64a948 into CleverRaven:master Jan 29, 2024
39 checks passed
@akrieger akrieger deleted the macbuild branch January 29, 2024 22:16
@akrieger
Copy link
Member Author

homebrew does not need updated because it doesn't build the .app, just the native binary and launcher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Code: Build Issues regarding different builds and build environments Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions [Python] Code made in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants