sttz / install-unity

Script to install Unity 3D versions from the command line on macOS
MIT License
131 stars 25 forks source link

File for package ios not found due to version mismatch #36

Open paragchandra opened 1 year ago

paragchandra commented 1 year ago

Hi, first off, thanks for this tool, it has been really helpful as I need to manage multiple Unity installations on each of several machines.

It seems that v2.12.0 of this tool is looking for v2023.1.15f1 of (at least) the iOS support package, even though I am trying to install v2020.3.38f1. This did not happen with older versions of the tool. I have previously downloaded this version into my ~/Downloads folder, and can see that the correct version of this file exists at ~/Downloads/Unity-2020.3.38f1/UnitySetup-iOS-Support-for-Editor-2020.3.38f1.pkg, but the tool is nonetheless expecting to find what I can only assume is the very latest version of this file instead.

Here is the full command I'm using to install (on an M2 Pro mac running Ventura 13.5.2)


sudo install-unity --opt downloadSubdirectory='Unity-2020.3.38f1' --opt installPathMac='/Applications/Unity-2020.3.38f1' --yes --data-path ~/Downloads --install --platform mac_os --packages mono,visualstudio,ios,appletv,linux-il2cpp,linux-mono,mac-il2cpp,webgl,windows-mono,lumin,documentation,language-ja,language-ko,language-zh-hans,language-zh-hantm,android,unity Unity-2020.3.38f1
paragchandra commented 1 year ago

I think I have found a workaround: if I remove the --install flag from the cmd line above, then install-unity will "re-download" the files and installation will proceed without error. This re-download seems to be much faster than an actual first-time download, so my guess is it is just verifying the files that it's already found in the directory I've specified.