1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-10-31 23:40:11 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
9395165916
updater: check build is ready 2022-01-30 18:25:47 +00:00
85536ff79e
expand CONTRIBUTING, print if tray enabled on startup 2021-05-24 15:58:43 +01:00
e7d1693517
Enable updater for Tray builds 2021-05-23 23:20:14 +01:00
e78b4882b3
Fix updater for zip files
Forgot to change this when I switched, oops.
2021-05-23 23:05:40 +01:00
0e21942cd6
add hard restart for updates on *nix
reincarnates app.Restart() removed in
bbb0568cc4 as app.HardRestart().
2021-05-03 20:08:23 +01:00
2687af31ca
updater: immediately store executable
for some reason I kept the response body and downloaded file in memory,
which led to timeouts and failed updates.
2021-04-07 18:17:18 +01:00
a8bf670697
dont log updates when disabled 2021-03-20 23:20:07 +00:00
30bef15855
Trim commit before comparing in IsNew()
Fixes the current version appearing as an update. Also fixed error
handling when no update is available, which obviously hadn't previously
been experienced.
2021-03-09 15:52:15 +00:00
7bd8fadf76
IsNew() compares commit, not version 2021-03-07 17:24:45 +00:00
21490faa9e
fix IsNew() func, include LICENSE in goreleaser 2021-03-07 16:45:35 +00:00
92332206f0
add basic update functionality
If enabled, jfa-go pings buildrone (hosted at builds.hrfee.pw) every 30
min for new updates. If there is one, it gets information (and if
applicable, a binary) from the appropriate source (buildrone, github, or
dockerhub) and displays it on the admin page. You can switch update
channels between stable and unstable. For binary releases, updates are
downloaded automatically and installed when the user presses update.

Since this obviously introduces some "phone-home" functionality into
jfa-go, I just want to say IPs are not and will not be logged by
buildrone, although I may later introduce functionality to give a rough
idea of the number of users (again, no IPs stored). The whole thing can
also be turned off in settings.
2021-03-07 15:23:44 +00:00