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

Uninstall Workflow #29

Merged
merged 10 commits into from
Jul 30, 2024
Merged

Uninstall Workflow #29

merged 10 commits into from
Jul 30, 2024

Conversation

ktwrd
Copy link
Owner

@ktwrd ktwrd commented Jul 23, 2024

This PR adds an uninstall CLI sub-command and wizard option for uninstalling the target game. Before deleting the sourcemod mod folder, it will check if all of the following conditions are met;

  • Is the game actually installed (RunnerContext.current_version.is_some())
  • Is the game not running (with crate::helper::is_game_running where mod_directory is from RunnerContext.get_mod_location())

If any of those conditions are not met, an error will be returned and will not allowed the user to uninstall the game (if it is even installed).

@ktwrd ktwrd requested a review from toastxc July 23, 2024 08:08
@ktwrd ktwrd added this to the v1.6.0 milestone Jul 23, 2024
@ktwrd ktwrd added the enhancement New feature or request label Jul 23, 2024
@toastxc
Copy link
Collaborator

toastxc commented Jul 23, 2024

I'll have a looky

@toastxc
Copy link
Collaborator

toastxc commented Jul 23, 2024

I can't see anything inherently wrong with the modifications, but do make sure to test (and not do a crowdstrike).

toastxc
toastxc previously approved these changes Jul 23, 2024
Copy link
Collaborator

@toastxc toastxc left a comment

Choose a reason for hiding this comment

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

Looks good, pls test (including edge cases).

@ktwrd
Copy link
Owner Author

ktwrd commented Jul 24, 2024

Looks good, pls test (including edge cases).

I tested it on W10 (w/ OF in the default sourcemod folder) last night, but I'll check it on my Debian install and my Steam Deck tonight.

@ktwrd
Copy link
Owner Author

ktwrd commented Jul 30, 2024

Tested on my windows install. Need to rebase from develop since #30 was merged.

toastxc
toastxc previously approved these changes Jul 30, 2024
Copy link
Collaborator

@toastxc toastxc left a comment

Choose a reason for hiding this comment

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

looks good

Copy link
Collaborator

@toastxc toastxc left a comment

Choose a reason for hiding this comment

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

compiles fine

@ktwrd ktwrd merged commit c54dfe9 into develop Jul 30, 2024
3 checks passed
@ktwrd ktwrd mentioned this pull request Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants