Steam Deck: Add command to remove installed dependencies #854
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A simple stop-gap resolution for #719.
This adds a new command
cleardeckdeps
, which will remove the Steam Deck dependencies directory (usually/home/deck/stl/deps
). When this is removed, STL will redownload up-to-date dependencies on next launch on Steam Deck.Currently if we bump the required dependency version in the script, the dependencies will not be updated because we don't track the version, so STL will see that the files are there and assume no download is needed. One solution is to always re-download the dependencies but this is messy. Ideally, eventually, we'll track the installed versions and then check if we need to update, but right now this PR is a simple solution.
When the dependencies folder is removed, and a version of STL with an updated dependency version is used, the updated files will be downloaded because the download logic will be called when the files are missing. A user can manually remove the deps folder, but a command is slightly more accessible I think.
This PR is entirely untested for now. I don't feel like testing on my Steam Deck yet because I'm lazy 😜 But this should help #719. Afterwards I will probably consolidate the improvement mentioned in this PR and that issue into one bigger initiative issue describing various Steam Deck improvements. Someone from the community may be able to pick up the mantle for that, as I very, very rarely use STL on my Steam Deck.
TODO: