Search Unity

How does Unity Hub handles updates?

Discussion in 'Unity Hub' started by nahoy, Jun 21, 2018.

  1. nahoy

    nahoy

    Joined:
    Dec 10, 2012
    Posts:
    21
    Hello,

    So far, Unity Hub is super awesome, thank you!

    It's not really a Unity Hub related question but... can you tell me how you handle the auto-update of the app?
    Obviously you check and download new versions in the background, but what happens when you click "restart to update"? Does it remove the old installation, then install the new one and launch it? Or something else?

    Thanks!
     
  2. afshinity

    afshinity

    Unity Technologies

    Joined:
    Jul 31, 2017
    Posts:
    334
    Hi Nahoy,

    Thank you for your feedback.
    Unity Hub is an electron app, and we are using the auto-update feature of the electron with some custom code around it.
    Yes, we check in the background once in a while (or when you go online) and download the update if available. The installation of the new one is happening when you restart the hub by replacing the new hub with the old one. (pretty much what you said).

    Best,
    Afshin
     
  3. nahoy

    nahoy

    Joined:
    Dec 10, 2012
    Posts:
    21
    Thanks a lot for the answer :)
    So I guess there's some kind of launcher that detects if an update is on disk, then delete the old one and put the new one and then launch it?
     
  4. afshinity

    afshinity

    Unity Technologies

    Joined:
    Jul 31, 2017
    Posts:
    334
    Yes.
    The hub process checks if there is an update available (on disk or on the cloud) and install it on the next restart.
     
    nahoy likes this.