filebrowser / filebrowser

📂 Web File Browser
https://filebrowser.org
Apache License 2.0
26.26k stars 2.99k forks source link

Check for updates and automatically download/replace #475

Closed yurividal closed 4 years ago

yurividal commented 6 years ago

It would be nice to have a button to check for update releases of file filebrowser. Perhaps a message saying a new version is available, or even a button to automatically download and replace the previous version.

hugomassing commented 6 years ago

I'm currently searching a way to update only filebrowser with caddy? Is there a way to update without installing caddy again?

eine commented 6 years ago

@hugomassing, caddy includes all the plugins at build time (see https://github.com/filebrowser/filebrowser/pull/399#issuecomment-407251536). I.e. the codebase of the plugins is embedded in caddy, because all of them are built together. Therefore, AFAIK the is no way to update only filebrowser, you need to rebuilt caddy. However, I think that each release is pushed to GitHub releases and Caddy builder at the same time, so if you update Caddy regurlarly you should get the latest version. Might we know a little more about the context?

@yurividal mviereck/x11docker/blob/master/#L1018-L1147 does this with a bash script. We can take it as a reference. Let's write a list of desired features:

The first task should be quite straightforward. Automatically updating filebrowser standalone might require a bit of work. The docker option seems tricky.

VLEFF commented 6 years ago

I have installed it with https://filebrowser.github.io/get.sh, how can I update filebrowser for the moment?

eine commented 6 years ago

@VLEFF running the script again should overwrite it with the latest version from https://github.com/filebrowser/filebrowser/releases/latest.

Alternatively, the binary should be located in /usr/local/bin. So you can just replace it manually. Download the tarball for your arch from the link above, extract it and copy/move the file named filebrowser.

hacdias commented 4 years ago

I'm closing this since this repository will be archived. Please read the information on the README for more information. Thanks for all your contributions!