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

Create an Updater #2

Closed
hadcl4 opened this issue Mar 12, 2022 · 4 comments
Closed

Create an Updater #2

hadcl4 opened this issue Mar 12, 2022 · 4 comments
Labels
enhancement New feature or request important Needs fixed soon.

Comments

@hadcl4
Copy link
Owner

hadcl4 commented Mar 12, 2022

Will add to TODO.md...

@hadcl4 hadcl4 added the enhancement New feature or request label Mar 12, 2022
@hadcl4
Copy link
Owner Author

hadcl4 commented Mar 12, 2022

Added to TODO.md.

@hadcl4
Copy link
Owner Author

hadcl4 commented Mar 13, 2022

I sort of have an idea of how to do it now.

First there will be a script called updater. This script will run when you choose to update Thunder. It will just run git pull, and then run an additional script called update that will fix anything that could break (for example, once I get room for up to 20 games). The only problem is update might not fix enough if you use an old version for a long time (for example. what if you're using a version with room for 15 games but the update is supposed to move from 20 slots to 25?).

Any help would be appreciated.

@hadcl4
Copy link
Owner Author

hadcl4 commented Mar 13, 2022

Okay, thought of a way to ensure update fixes everything. There will be a config file storing what version you have installed. The update file will check which version you have installed using the config file, and then apply all necessary fixes before applying the latest update.

Also there could just be the file update, which would apply fixes and run git pull. No need to split a single function in the same language into 2 files!

@hadcl4 hadcl4 added the important Needs fixed soon. label Mar 13, 2022
hadcl4 added a commit that referenced this issue Mar 13, 2022
hadcl4 added a commit that referenced this issue Mar 13, 2022
hadcl4 added a commit that referenced this issue Mar 13, 2022
hadcl4 added a commit that referenced this issue Mar 13, 2022
hadcl4 added a commit that referenced this issue Mar 13, 2022
@hadcl4 hadcl4 closed this as completed in 4ad1245 Mar 13, 2022
hadcl4 added a commit that referenced this issue Mar 13, 2022
@hadcl4
Copy link
Owner Author

hadcl4 commented Mar 13, 2022

Completed the updater, kinda buggy but works.

hadcl4 added a commit that referenced this issue Mar 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request important Needs fixed soon.
Projects
None yet
Development

No branches or pull requests

1 participant