dgiagio / warp

Create self-contained single binary applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remote Update/Auto-Update functionality

tokejepsen opened this issue · comments

Very cool project!

I haven't dug too much into it, but had an idea.

Could you have a remote location for the exe or source files?
The idea is that you release updates for distributed users, so the remote users have the same experience as users on a network.

I don't really understand what you are suggesting here. Could you please give an example?

It seems currently that the user has to initially download the warp (ped) exe file to install.
When there is an update the developer would release a new exe file, which the user need to be aware of, and download and execute to get the latest updates.

What if the exe file could download updates from a remote location rather than the user having to be aware of the updates?

Sorry, if I've misunderstood this project.

commented

@tokejepsen What you're asking is for warp itself to provide an update mechanism to download newer versions of your program, correct? From the sound of it, you would like for this to be automatic, too. If so, I would change the name of this issue to "Remote Update/Auto-Update functionality".

However, I see this being possible by implementing it in your own project's code.

For example, you could have some code at the start of your NodeJS program that you compiled for windows to check for a new warp .exe on example.com/latest/win64 and if the version is different from a constant in your NodeJS program, prompt the user if they would like to download it and replace the current running warp executable with the newly downloaded one.

This way, you could have an update mechanism without it being a part of warp itself, but rather your own code. I'm not sure if the devs who work on warp want to develop this feature.
If I misunderstood what you meant, please let me know.

What you're asking is for warp itself to provide an update mechanism to download newer versions of your program, correct?

Exactly. Spot on.

This way, you could have an update mechanism without it being a part of warp itself, but rather your own code. I'm not sure if the devs who work on warp want to develop this feature

Yeah, if it's not a feature for warp, then own code for updating is definitely the way to go.

@tokejepsen You might want to take a look at Google's opensource app updater, Omaha. I think it does what you are looking for.

Thanks @siepkes for the link!

Might be a bit overkill atm for my needs but very interesting and something I'll keep and eye on.