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

Feature Request: Force version manually #1

Closed
GaryCraft opened this issue Mar 9, 2022 · 3 comments
Closed

Feature Request: Force version manually #1

GaryCraft opened this issue Mar 9, 2022 · 3 comments

Comments

@GaryCraft
Copy link

I know this might be a weird one, but it might be useful to have a version to force, as an argument, would it be possible to get it from the CDN by version?

This might enable to not update to an incompatible version or to go back to some versions temporarily if newer ones cause problems

@GaryCraft GaryCraft changed the title Feature Request: Force latest version manually Feature Request: Force version manually Mar 9, 2022
@mxve
Copy link
Owner

mxve commented Mar 9, 2022

Afaik the CDN only serves the latest version of each file. And even if older versions of the files were still available, there wouldn't be a way to get the name of the file.
The file names on the CDN are SHA1 hashes of the files that are obtained from https://cdn.plutonium.pw/updater/prod/info.json, without this hash we aren't able to download the file. There is no (public) archive of versions.

I'm going to implement a small backup system to allow going back to a previously insatlled version

ToDo (subject to change):

  • automatically backup changed files to $installdir/backup/$version/
    • ? pack & compress as archive rather than keeping the loose files
    • keep a max of n versions (probably 3)
  • Manually create/update backup with --backup
  • list backups with --backup-list
  • restore backed up version with --backup-restore
  • disable backups with --no-backup

mxve added a commit that referenced this issue Mar 12, 2022
mxve added a commit that referenced this issue Mar 12, 2022
mxve added a commit that referenced this issue Mar 12, 2022
mxve added a commit that referenced this issue Mar 12, 2022
@mxve
Copy link
Owner

mxve commented Mar 12, 2022

I've implemented the backup feature.
I still have to do a bit more testing before publishing a release, this issue will stay open until then.

@mxve
Copy link
Owner

mxve commented Mar 13, 2022

https://github.com/mxve/plutonium-updater.rs/releases/tag/v0.3.0

@mxve mxve closed this as completed Mar 13, 2022
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

No branches or pull requests

2 participants