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

WIP: Linux support #191

Closed
wants to merge 19 commits into from
Closed

WIP: Linux support #191

wants to merge 19 commits into from

Conversation

fnr1r
Copy link
Contributor

@fnr1r fnr1r commented Jul 21, 2023

This PR adds Linux support.

Here's what currently works:

  • Launching the game
  • Launching the GC server
  • Registry wiping
  • Builtin proxy
  • Downloading things
  • Service control
  • Installing CA certs (on Debian and Arch-based distros)
  • 3dmigoto

Here's what I'm unsure about:

  • Akebi/Acrepi
  • Reshade Injector
  • Anything not on the previous list

This is janky, but does not require AppHandle.
On Linux URLs to app resources start with tauri://localhost instead of
https://tauri.localhost
Also disabled install_ca_files since this causes crashes when not run as
root
@fnr1r
Copy link
Contributor Author

fnr1r commented Jul 25, 2023

Rebased on main, updated anime-launcher-sdk, squashed "Fix build on Windows" 8ff6397 into the commit that introduced that issue and complied with clippy.

@SpikeHD
Copy link
Collaborator

SpikeHD commented Jul 26, 2023

What sorts of uncertainties do you have regarding reshade and Akebi/Acrepi/etc.? Are you unable to test them, or do you know they don't work?

@fnr1r
Copy link
Contributor Author

fnr1r commented Jul 26, 2023

I'm not sure if they work.
I don't have a copy of Akebi with which I could test the game with.
As for reshade, I haven't got around to it yet.

@SpikeHD
Copy link
Collaborator

SpikeHD commented Jul 26, 2023

Okay, that's fine. I would feel fine merging without knowing if they work or not, I'll give a full code review when I have some free time 👍

@fnr1r
Copy link
Contributor Author

fnr1r commented Jul 26, 2023

Reshade does not work. Video: https://youtu.be/hYzUbkH8R14
Should I still add the code necessary for running the injector from the launcher?

@SpikeHD
Copy link
Collaborator

SpikeHD commented Jul 26, 2023

I think it should be kept, no way to know if a new Wine version would just fix it or whatever. I would imagine it to be a similar situation with Akebi-likes, so we can just assume they would work the same.

fnr1r added 14 commits August 5, 2023 20:00
Quick note: Patching works, but the launcher attempts to unpatch the
game two times.
This might not work on macOS
Windows's implementation of enable_grasscutter_watcher works just fine.
systemd is pretty much standart for handling services.
No "sudo" or "pkexec" is needed, systemd does that automatically, but
since the user needs to authenticate, we can’t await service_status.
Kinda everts some changes of
"Implement MongoDB autostart and GC watching".
Only the "Capabilities" method is implemented right now.
This commit makes launching MongoDB async
Remade since the previous version prevented the game from launching when
offline.
It's for Reshade Injector, in case it starts working on Linux in the
future.
@fnr1r
Copy link
Contributor Author

fnr1r commented Aug 5, 2023

Moved terminal detection to term-detect, updated anime-launcher-sdk and complied with clippy (I missed one commit last time).

@fnr1r fnr1r closed this Aug 23, 2023
@fnr1r fnr1r deleted the linux branch August 23, 2023 13:42
@fnr1r
Copy link
Contributor Author

fnr1r commented Aug 23, 2023

Oops. I was cleaning up branches and did not expect renaming the linux branch to close the PR.
Since https://github.com/MrLGamer/GIMI-for-Linux was updated, I'll reopen the pull request with the part2 branch, which does not contain support for 3dmigoto.

@fnr1r fnr1r mentioned this pull request Aug 23, 2023
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