Skip to content

feat: Add basic Proton management#383

Merged
GeckoEidechse merged 18 commits intoR2NorthstarTools:mainfrom
Jan200101:PR/proton
Jul 18, 2023
Merged

feat: Add basic Proton management#383
GeckoEidechse merged 18 commits intoR2NorthstarTools:mainfrom
Jan200101:PR/proton

Conversation

@Jan200101
Copy link
Copy Markdown
Contributor

based on #180
adds logic for installing, uninstalling and getting the local NSProton version.

@Jan200101
Copy link
Copy Markdown
Contributor Author

I don't know how to fix the clippy issues because they are completely different locally.

@catornot
Copy link
Copy Markdown
Contributor

catornot commented Jun 7, 2023

I don't know how to fix the clippy issues because they are completely different locally.

maybe try updating clippy?

@GeckoEidechse
Copy link
Copy Markdown
Member

Thanks a lot for the PR <3

Will hopefully get to testing tomorrow, as for code review stuff, I think @catornot already mentioned most things ^^

I don't know how to fix the clippy issues because they are completely different locally.

maybe try updating clippy?

This. CI pulls in newest Rust version which is currently 1.70. You can check with e.g. cargo --version and then just run rustup update to get to newest version ^^

@Jan200101
Copy link
Copy Markdown
Contributor Author

maybe try updating clippy?

my local clippy is clippy 0.1.70, this turned out to be some tauri thing that needed poking to make happy.

Co-authored-by: GeckoEidechse <gecko.eidechse+git@pm.me>
Copy link
Copy Markdown
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

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

Some stuff I found from reading code and minor testing

@GeckoEidechse GeckoEidechse self-requested a review June 12, 2023 20:44
Copy link
Copy Markdown
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

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

Sorry I didn't review earlier. Took so long that by now it got some merge conflicts... x_x

@Jan200101
Copy link
Copy Markdown
Contributor Author

Successful clippy checks without testing it prior 😎 (I totally am not forgetting to run it)

@catornot
Copy link
Copy Markdown
Contributor

catornot commented Jul 9, 2023

Successful clippy checks without testing it prior 😎 (I totally am not forgetting to run it)

Why aren't you using a lsp ( rust analyzer ); You wouldn't have to run anything.

@Jan200101
Copy link
Copy Markdown
Contributor Author

Why aren't you using a lsp ( rust analyzer ); You wouldn't have to run anything.

Not a fan of having to setup an lsp for everything I work for.
Don't need more than syntax highlighting.

@Jan200101
Copy link
Copy Markdown
Contributor Author

Test locally and it """works""".

As mentioned on Discord, the libthermite api for proton stuff is very bare and dreadful to use (with an API break in a minor release that made this PR even more painful).
With a potential migration to Proton GE in the future (or forking it, or using Proton Experimental because apparently that works now) a more in-depth solution would be needed.

But since this is a dev menu button, this is good to go as is.

Copy link
Copy Markdown
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

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

Seems to work in testing in the sense that the install didn't panic and checking version afterwards printed a value.

Cannot really test if it is actually able to run Titanfall2 once the proton install is selected as I don't have a Linux install running Titanfall2. Well I guess it's still a dev feature after all so I'm fine with what it does so far.

Once the remaining comments + merge conflicts are addressed it should be good to merge :D

Copy link
Copy Markdown
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

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

Confirmed working in testing in the sense that installing, checking install, and removing works.

Also Steam seems to be able to pick it up

image

Didn't test actually running Northstar with it.

@GeckoEidechse GeckoEidechse changed the title feat: Add Proton management feat: Add basic Proton management Jul 18, 2023
@GeckoEidechse GeckoEidechse merged commit 9dccdb0 into R2NorthstarTools:main Jul 18, 2023
@GeckoEidechse GeckoEidechse mentioned this pull request Jul 21, 2023
100 tasks
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.

3 participants