Open hialvaro opened 1 year ago
Hi @hialvaro I think this is a cool feature. I want to work on this. Do you have any suggestions ? Should we use the os package manager (like apt/pacman/etc..), should we use cargo or should we use the tar releases https://github.com/zellij-org/zellij/releases ? I think the safest and easiest way is using tar releases.
Thanks for your time
Hey, restic has a self-update
command that is very useful, since I can install the outdated debian
package and then run the restic self-update
to update the binary.
From the man
pages of restic
:
The command "self-update" downloads the latest stable release of restic from GitHub and replaces the currently running binary. After download, the authenticity of the binary is verified using the GPG signature on the release files.
Here's the relevant code for this command: https://github.com/restic/restic/tree/master/internal/selfupdate
Hi @hialvaro after a discussion on matrix with other zellij users and developers I want to express my (new) opinion on this feature.
Fair enough, I understand your points
@marianomarciello Could we have at least some endpoint /latest
to download the latest release of Zellij easily?
@marianomarciello - respectfully, I disagree with both points.
Reopening this issue.
@hialvaro - take a look at the "try Zellij without installing" script on the zellij.dev website, I think it uses a latest endpoint of some sort.
I have found that this endpoint can be used to download the latest release
Just wanted to note the discussion we had on discord to not loose it and give my feedback, back into the original issue.
I proposed that this feature could be done with a plugin. This way it can be removed by packagers so user only have access to the packaged version of their distribution (or from cargo install
). Like Firefox auto update ON on windows but OFF when using a package manager on Linux.
But WASM plugins do not have access to internet so an API should be added for that. This should also wait on the . They will also need to access the filesystem and may have different strategy between windows and Linux (not sure about MacOs). All of this will need the permission system to be build before so… in the end it may or may not be created as a plugin, depending on when the task will be taken care of.
As for "immediate" and/or general update functionality, I know of 2 programs that try to do so generally:
https://github.com/topgrade-rs/topgrade try to detect everything it can update on your computer and start commands to do so.
I wasn’t aware of it and created https://zykino.net/gitea/zykino/system-updater. I use it daily but haven’t published it yet (I still need to write the README :sweat_smile:). The idea on this one is more a "I remember and start the commands for you when you run me". So it will apt update
then cargo install-update -a
then curl <zellij-url>
…
So if the tool you use does not auto-update, there are still ways to automatically update it from external tools ;)
Not sure why this was closed? It's still not implemented...
Hey, sorry, I thought this wasn't going to be implemented. Maybe I had misunderstood it!
All good - I want this to be implemented, but I hope you can be patient - it might take time.
For people using the standalone binary, a
self-update
command would be awesome to update zellij with just a command:zellij self-update