-
Notifications
You must be signed in to change notification settings - Fork 9
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
Patch openssl, add AppImage interactive option, create mesa wrapper script #35
Patch openssl, add AppImage interactive option, create mesa wrapper script #35
Conversation
After testing manually on NixOS, it appears that `patchelf 0.15.0` is able to properly patch out references to openssl libs in favor of libcurl. This change also adds a prompt for installing as an AppImage, allowing the interactive mode to also install AM2R as a native binary.
This is necessary to fix a bug in AM2RLauncher, wherein the game crashes on launch because the Mesa workaround is not ported/included by the launcher.
Thanks for the PR! Some other things which also may be important:
|
No worries, I'm pretty busy too (apologies for such a late reply)! I've also pushed a new commit to my branch that uses a new
|
Just to double check, you tested this by running the patcher and then try to run the game, right? I would need to dig out the conversations I had with IvarOnBones regarding this, but when I tried to use it (probably on Arch? I really can't remember, sorry), the binary just became corrupted where it wouldn't even run properly anymore. Worth putting on the list for me I suppose when I go properly review the PR. Checked out the am2rlauncher fork. In general seems nice, but have a few gripes i'll get to when you'll actually PR the changes. (Alternatively, you can also hop into #am2r-development in Matrix/Discord, and we can have a chat there). |
Yep, the command I've been using to test so far is I'll probably hold off on upstreaming the AM2RLauncher fork until this is stabilised, it could also use some cleanup too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apart from small typo, looks fine to me otherwise
FWIW, this was the original patchelf bug report I'd have to try later if i can repro it on arch, but since it's now optional, it shouldn't be much of an issue. |
Co-authored-by: Miepee <38186597+Miepee@users.noreply.github.com>
Awesome, thank you! Regarding the bug report - the changes to |
Thank you for the PR :) |
This PR does the following:
patcher.sh
that patches therunner
binary to point tolibcurl
instead of openssl 1.0.0Regarding item 1, I've tested on NixOS following the installation docs in the README using
patchelf 0.15.0
and experienced no issues. I believe that the bug mentioned in previous versions of patchelf is no longer an issue.I'm attempting to get the AM2RLauncher package working on NixOS, and these changes have allowed me to do so when pointing the launcher at my fork of this repo with these changes. Any comments/feedback would be appreciated :)