dennisvang / tufup-example

Example of a self-updating application using tufup.
MIT License
14 stars 8 forks source link

Question about how to self-update without having to manually run the application again. #12

Closed LorenzoAlfaro closed 8 months ago

LorenzoAlfaro commented 1 year ago

Hi, is there a way to separate the client from the main app so the client will update the app and then run it after the update? The way the example is set up after an update, the app has to close itself, and then you have to rerun the app manually. I'm just thinking of ways to reduce friction for the end user.

dennisvang commented 1 year ago

Hi @LorenzoAlfaro , thanks for your interest in tufup. :-)

It is certainly possible to restart your app after the update has finished.

The way to approach this depends on your platform, and on the way your app is bundled (e.g. if you're using PyInstaller):

dennisvang commented 1 year ago

@LorenzoAlfaro Please let us know if you run into any issues. :-)

LorenzoAlfaro commented 1 year ago

Hi Dennis, thank you for taking the time for such a complete answer. With your help I managed to make it work!

dennisvang commented 1 year ago

Hi @LorenzoAlfaro Good to hear it's working. Thanks for your feedback. :-)

RasmusN commented 1 year ago

This is awesome stuff, I that recommend you include it in the tufup documentation.

mdhuzaifapatel commented 1 year ago

Hello guys, I have an existing python application could you please guide me how to integrate tufup in that? also I'm using a Linux as repository to push updates.

so i want to achieve this, I push the new updated application files on server, the old app should fetch new updates from there and update the app.

please help me out, I'm unable to do it on my own. your help will be appreciated. thanks

dennisvang commented 1 year ago

@mdhuzaifapatel see https://github.com/dennisvang/tufup-example/issues/3#issuecomment-1698822223