time-to-leave icon indicating copy to clipboard operation
time-to-leave copied to clipboard

App should auto update

Open thamara opened this issue 6 years ago • 9 comments

From #43: Many electron-based apps download updates automatically and ask the user to restart to apply. I feel this is of best interest to this app, specially because people typically would download this application and use as is until they find a major problem with it, and then they'd have to come to GH releases.

It would be great if this was actually part of the next release.

thamara avatar Oct 21 '19 01:10 thamara

I would like to work on this, but I've got some questions. What message should be displayed after downloading updates?

gregorycode avatar Oct 22 '19 20:10 gregorycode

We already have the logic to check for updates (including how often and etc), so you could just work on actually auto updating :D

Btw, do you have a clue on how to do it already or would you learn as you go? (Just curious)

tupaschoal avatar Oct 22 '19 21:10 tupaschoal

Well, I am not an Electron developer. Do it just for fun. I thought to use ipcRenderer.send("download".. Or autoUpdater.

gregorycode avatar Oct 22 '19 21:10 gregorycode

Well, give it a try and let us know!

tupaschoal avatar Oct 22 '19 22:10 tupaschoal

Assigned to @Grigory57

tupaschoal avatar Oct 23 '19 03:10 tupaschoal

Sorry guys, I haven't succeeded. I did some research and tried to update the app with the electron-updater and autoUpdater, but no luck. I feel I miss something, but I can't put my finger on it. So I believe it's better to assign someone else in order not to waste your time. Sorry.

gregorycode avatar Oct 25 '19 16:10 gregorycode

Oh, that's unfortunate @Grigory57 , but thank you very much for trying, we really appreciate, now we know it's not a trivial effort and we also have documented it to other people :) Thanks!

tupaschoal avatar Oct 26 '19 04:10 tupaschoal

Okay, this isn't automatic or anything, but I bet it could easily be made so. https://github.com/kashaiahyah85/homebrew-k85-tap

To install:

brew tap kashaiahyah85/homebrew-k85-tap
brew cask install time-to-leave

After that, if you'll open up your apps, right-click on Time to Leave, and click open, then you'll be shown a security confirmation and you're up and going.

And, for upgrades:

brew cask upgrade time-to-leave

It'll need to be updated to upgrade to the newest version released, but that's no trouble.

We can probably work this into an update option in a menu, or even have it run as a separate process in the background now and then to check for a new https://github.com/thamara/time-to-leave/releases.atom.

NetizenAbel avatar Nov 09 '19 18:11 NetizenAbel

It is essentially impossible to accomplish this on macos, save for paying apple. But, Windows and Linux are much simpler.

NetizenAbel avatar Nov 26 '19 00:11 NetizenAbel