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

Mod installation #64

Merged
merged 25 commits into from
Dec 3, 2022
Merged

Mod installation #64

merged 25 commits into from
Dec 3, 2022

Conversation

Windows10CE
Copy link
Member

Depends on #63, that should be merged first and then this PR rebased onto master. Until that happens, check /~https://github.com/thunderstore-io/thunderstore-cli/compare/refactor..mod-installation for the actual diff.

@codecov
Copy link

codecov bot commented Oct 12, 2022

Codecov Report

Merging #64 (d95df00) into master (9d4a7f8) will not change coverage.
The diff coverage is n/a.

❗ Current head d95df00 differs from pull request most recent head 999cd02. Consider uploading reports for the commit 999cd02 to get more accurate results

@@          Coverage Diff           @@
##           master   #64     +/-   ##
======================================
  Coverage    0.00%     0             
======================================
  Files          20     0     -20     
  Lines        1200     0   -1200     
======================================
+ Misses       1200     0   -1200     
Impacted Files Coverage Δ
ThunderstoreCLI/API/ApiHelper.cs
ThunderstoreCLI/Commands/BuildCommand.cs
ThunderstoreCLI/Commands/InitCommand.cs
ThunderstoreCLI/Commands/PublishCommand.cs
ThunderstoreCLI/Configuration/BaseConfig.cs
...hunderstoreCLI/Configuration/CLIParameterConfig.cs
ThunderstoreCLI/Configuration/Config.cs
ThunderstoreCLI/Configuration/ProjectFileConfig.cs
ThunderstoreCLI/Models/BaseToml.cs
ThunderstoreCLI/Models/PublishModels.cs
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@Windows10CE Windows10CE force-pushed the mod-installation branch 2 times, most recently from d5b009f to 3ed01dd Compare November 7, 2022 20:26
@Windows10CE Windows10CE marked this pull request as ready for review November 14, 2022 15:23
@Windows10CE Windows10CE force-pushed the mod-installation branch 3 times, most recently from df66bf8 to 9594804 Compare November 15, 2022 18:00
Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

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

I'm not very confident that this is a good PR given how little I remember about the CLI tool and C#, and the fact that I've no Rust experience at all. But hopefully it's better than nothing. Obviously feel free to disagree with my ideas.

Out of curiocity, what was the reasoning for including Rust in the project?

let manifest: ManifestV1 =
serde_json::from_reader(manifest_file).map_err(|_| Error::InvalidManifest)?;

if manifest.name.starts_with("BepInExPack") {
Copy link
Collaborator

Choose a reason for hiding this comment

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

IIRC for some games BepInEx package doesn't contain "Pack" in the title. Not sure if there's a difference between "BepInEx" and "BepInExPack" in this context.

Copy link
Member Author

@Windows10CE Windows10CE left a comment

Choose a reason for hiding this comment

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

The installer is written in Rust for a few reasons, mostly since I wanted a small size footprint for the individual installers and static linking into a single file. Other languages could do the same, but Rust is the one I'm most familiar with and I think it makes more sense than to add another language to our roster, when Rust is already used in a few places. (I highly recommend learning it by the way, its may well become my favorite over C# as I use it more)

Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

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

LGTM (besides the conflict).

@Windows10CE Windows10CE merged commit a403dc7 into master Dec 3, 2022
@Windows10CE Windows10CE deleted the mod-installation branch December 3, 2022 08:48
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