Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

restart my app after an auto-update?

In OS X how can I automatically re-start my app after pulling down an updated version?

I've looked around some and launchd seems to be the likely way to do this, but I can't seem to get my head around it. I can't seem to find any good resources talking about this specifically either.

I could also create a script or separate process to do this, but that seems clunky at best, I'm expecting there is a better solution out there.

like image 594
slycrel Avatar asked Nov 30 '25 17:11

slycrel


1 Answers

Separate process is good solution, look at Sparkle framework (most of apps use it for autoupdating), they also use for this standalone app - https://github.com/andymatuschak/Sparkle/blob/master/relaunch.m

like image 152
Julia Mironova Avatar answered Dec 02 '25 08:12

Julia Mironova



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!