UnityHubNative icon indicating copy to clipboard operation
UnityHubNative copied to clipboard

Linux : Install editor from "Editor Version", and maybe an update notification

Open hunabku94 opened this issue 1 year ago • 8 comments

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like A way to install editor, and if one is, an icon or something to advert there is an update

Describe alternatives you've considered

Additional context

hunabku94 avatar Jul 10 '24 05:07 hunabku94

New editor versions can be installed from the Editor tab.

Ravbug avatar Jul 10 '24 16:07 Ravbug

Maybe the linux release, or i'm tired but where can i please ?

qNlXscn

hunabku94 avatar Jul 11 '24 18:07 hunabku94

The Linux version currently doesn't support installing Editor versions, sorry. You're welcome to make a PR.

Ravbug avatar Jul 11 '24 21:07 Ravbug

I don't know C++, but i can't totaly help for the linux part ;-)

hunabku94 avatar Jul 12 '24 06:07 hunabku94

i know some C#, can help, maybe

hunabku94 avatar Jul 12 '24 07:07 hunabku94

So, i have time and i'm motivated to add this feature.

I get an eye to the code and it's hard to me to understand the structure and what i need to modify.

Can we work together to do that feature ?

hunabku94 avatar Oct 04 '24 07:10 hunabku94

This line of code disables the "Install New" button on Linux. Removing the linux check will re-enable the button: https://github.com/Ravbug/UnityHubNative/blob/61160cac9e92dcb77d928ee6d7c9189b397596a3/source/interface_derived.cpp#L95-L97

The code for the Install New dialog and associated functionality lives in add_install_dlg_derived.cpp. The Install Via (Official) Hub button might work out-of-the-box, but I haven't tested it as I don't currently have a machine running Linux.

Beyond that, installing outside the official hub will require some additional effort. You'll likely need to add a new case to this section of code: https://github.com/Ravbug/UnityHubNative/blob/61160cac9e92dcb77d928ee6d7c9189b397596a3/source/add_install_dlg_derived.cpp#L174-L183 as well as this section of code to launch their installer: https://github.com/Ravbug/UnityHubNative/blob/61160cac9e92dcb77d928ee6d7c9189b397596a3/source/add_install_dlg_derived.cpp#L206-L212

Ravbug avatar Oct 04 '24 16:10 Ravbug

Thanks i will see for that

hunabku94 avatar Oct 14 '24 14:10 hunabku94

The install flow has been changed to open https://unity.com/releases/editor/archive in your browser since I don't have the time (or desire) to reverse-engineer Unity's install system and keep it up-to-date. As such, there's no longer a need for this.

Ravbug avatar Jul 13 '25 00:07 Ravbug