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

Specify specific version to downgrade to #5892

Closed
hrueger opened this issue May 14, 2021 · 8 comments
Closed

Specify specific version to downgrade to #5892

hrueger opened this issue May 14, 2021 · 8 comments

Comments

@hrueger
Copy link
Contributor

hrueger commented May 14, 2021

  • Version: 22.10.5
  • Electron Version: 12.0.7
  • Electron Type (current, beta, nightly): current
  • Target: Windows, MacOS, Linux

I'd like my users to be able to downgrade to a specific version if they want. For that I want to display a list of releases in my UI and once a user selects an entry, I'd like to use the autoUpdater to downgrade to this version.

I'm using an S3 provider, so I could build the list from the xml index file. But how do I tell the autoUpdater which version to downgrade to?

@mmaietta
Copy link
Collaborator

I'm not familiar enough with electron-updater to be able to advise on this one. I'm equally interested and would welcome any proposals on how we could create this interface. Perhaps manually specifying an update URL that has the dist and blockmap? Not sure if that's a messy approach though within the current architecture

@hrueger
Copy link
Contributor Author

hrueger commented Jun 23, 2021

Like with #5895 I'd be happy to implement this if I know how it should look.
Just another idea here:

Like the latest.yml we could generate a versions.yml, a versions-linux.yml and a versions-mac.yml which each include all versions. Then, we could have a user just specify a version (or even provide them all in an array).

@stale
Copy link

stale bot commented Aug 22, 2021

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Aug 22, 2021
@hrueger
Copy link
Contributor Author

hrueger commented Aug 22, 2021

Yes, it is still relevant. It just needs some more opinions from other people / maintainers about how to implement it.

@stale stale bot removed the backlog label Aug 22, 2021
@mmaietta
Copy link
Collaborator

Hi @hrueger !
Re:

Like the latest.yml we could generate a versions.yml, a versions-linux.yml and a versions-mac.yml which each include all versions. Then, we could have a user just specify a version (or even provide them all in an array).

If these are including all versions, where is this list being maintained from? Another file in the repo tracking all previous releases to be maintained by the author?

I just wrote an updater/publisher in PR #6167 if you'd like to take a look. It might help for familiarizing with writing your own custom updater (or rather, downgrader).

@hrueger
Copy link
Contributor Author

hrueger commented Aug 23, 2021

If these are including all versions, where is this list being maintained from? Another file in the repo tracking all previous releases to be maintained by the author?

Hm, that's a good question. I honestly have not yet thought about that. Maybe we could also try to find those version files from previous releases online, read them and just add info about the new version?

@stale
Copy link

stale bot commented Apr 17, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the backlog label Apr 17, 2022
@stale stale bot closed this as completed Apr 28, 2022
@Bohooslav
Copy link

Is there any guide how can one downgrade/upgrade to specified version in existing architecture, at least as a temporary solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants