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

Make macos version work (testes on m1 at least) #53

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

vaartis
Copy link
Contributor

@vaartis vaartis commented Feb 25, 2024

  1. Change name of discord's library to libdiscord_game_sdk, so it links properly
  2. Change its install name with install_name_tool to use @loader_path instead of @rpath, that one's on discord's side, it should really have been loader_path from the beginning (rpath means look at where the binary is started from, loader_path means look at where the library is)
  3. Combine the aarch and x86 library into one, again no idea why discord does not do this themselves

1. Change name of discord's library to libdiscord_game_sdk, so it
links properly
2. Change it's install name with install_name_tool to use @loader_path
instead of @rpath, that one's a blunder on discord's side, it should
really have been loader_path from the beginning (rpath means look at
where the binary is started from, loader_path means look at where the
library is)
3. Combine the aarch and x86 library into one, again no idea why
discord does not do this themselves
@vaporvee
Copy link
Owner

okay so we got it working on intel let us test it on m1

@vaporvee vaporvee self-requested a review February 25, 2024 14:19
@vaporvee vaporvee added enhancement New feature or request building Everything about building the plugin important labels Feb 25, 2024
@vaporvee
Copy link
Owner

@EddieDover

@vaporvee vaporvee linked an issue Feb 25, 2024 that may be closed by this pull request
3 tasks
@vaporvee
Copy link
Owner

this worked on apple silicon so far wow! thank you :) will merge it when we are able to test it on intel in a day and will release it

@EddieDover
Copy link
Contributor

I can confirm this builds and works perfectly on my M2 mac.

@EddieDover
Copy link
Contributor

I can also confirm this builds and works perfectly on an Intel.

I wholeheartedly approve this PR.

@vaporvee
Copy link
Owner

will make a release soon! :)

@vaporvee vaporvee merged commit 1b56b8c into vaporvee:main Feb 27, 2024
@vaporvee vaporvee linked an issue Feb 27, 2024 that may be closed by this pull request
3 tasks
@vaartis vaartis deleted the macos-fixes branch February 29, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Everything about building the plugin enhancement New feature or request important
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin not working on macOS [Issue/Bug]: MacOS SDK Problem
3 participants