Mac Install Support - #126
Conversation
…tupInstance to handle ordering of installs slightly differently. Breaks out downloading installers into a separate function.
…d for installing a single package.
…age installs and moves final installs to proper directory on macOS.
…ng sparse bundle disks.
|
wolo (awolowiecki720)
left a comment
There was a problem hiding this comment.
Hey, we should expose these functions in the .psd1 so that users who import the module have that functionality available to them.
For example, Select-UnitySetupInstaller function and corresponding flags are not available for me while testing in powershell
- Adapts batch downloading to the restuctured version in this branch.
…ld leverage in external scripts.
…ter all files finished downloading.
…asn't being calculated. Thus command was still blocking indefinitely.
|
Josh Wittner (@jwittner) - I merged in your batch download changes into here. Restructured a bit to continue supporting F:\GitHub\Microsoft\unitysetup.powershell [(9fe346d...)]> $installers = Find-UnitySetupInstaller -Version 2018.3.1f1
WARNING: Unable to find installer for the StandardAssets component.
F:\GitHub\Microsoft\unitysetup.powershell [(9fe346d...)]> $installers | Request-UnitySetupInstaller
ComponentType Path
------------- ----
Windows C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup64-2018.3.1f1.exe
Linux C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-Linux-Support-for-Editor-2018.3.1f1.exe
Mac C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-Mac-Mono-Support-for-Editor-2018.3.1f1.exe
Documentation C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnityDocumentationSetup-2018.3.1f1.exe
Windows_IL2CPP C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-Windows-IL2CPP-Support-for-Editor-2018.3.1f1...
UWP C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-UWP-.NET-Support-for-Editor-2018.3.1f1.exe
UWP_IL2CPP C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-UWP-IL2CPP-Support-for-Editor-2018.3.1f1.exe
Android C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-Android-Support-for-Editor-2018.3.1f1.exe
iOS C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-iOS-Support-for-Editor-2018.3.1f1.exe
AppleTV C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-AppleTV-Support-for-Editor-2018.3.1f1.exe
Facebook C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-Facebook-Games-Support-for-Editor-2018.3.1f1...
Vuforia C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-Vuforia-AR-Support-for-Editor-2018.3.1f1.exe
WebGL C:\Users\roonulak\.unitysetup\Installers\Unity-2018.3.1f1\UnitySetup-WebGL-Support-for-Editor-2018.3.1f1.exeBatch downloads with multiple versions and specific components: F:\GitHub\Microsoft\unitysetup.powershell [(9fe346d...)]> $installers = Find-UnitySetupInstaller -Version 2017.3.1f1
WARNING: Unable to find installer for the Windows_IL2CPP component.
F:\GitHub\Microsoft\unitysetup.powershell [(9fe346d...)]> $installers += Find-UnitySetupInstaller -Version 2017.4.8f1
WARNING: Unable to find installer for the Windows_IL2CPP component.
F:\GitHub\Microsoft\unitysetup.powershell [(9fe346d...)]> $installers | Select-UnitySetupInstaller -Components Windows, Mac, Linux |Request-UnitySetupInstaller
ComponentType Path
------------- ----
Mac C:\Users\roonulak\.unitysetup\Installers\Unity-2017.3.1f1\UnitySetup-Mac-Support-for-Editor-2017.3.1f1.exe
Mac C:\Users\roonulak\.unitysetup\Installers\Unity-2017.4.8f1\UnitySetup-Mac-Support-for-Editor-2017.4.8f1.exe
Windows C:\Users\roonulak\.unitysetup\Installers\Unity-2017.3.1f1\UnitySetup64-2017.3.1f1.exe
Linux C:\Users\roonulak\.unitysetup\Installers\Unity-2017.4.8f1\UnitySetup-Linux-Support-for-Editor-2017.4.8f1.exe
Linux C:\Users\roonulak\.unitysetup\Installers\Unity-2017.3.1f1\UnitySetup-Linux-Support-for-Editor-2017.3.1f1.exe
Windows C:\Users\roonulak\.unitysetup\Installers\Unity-2017.4.8f1\UnitySetup64-2017.4.8f1.exe |
|
Robert Onulak (@Ziugy) there's a merge conflict, can you please fix so I can test your changes? |
Changes were made, needs another review.
…efault install path moved to Unity Hub's default install location.
|
wolo (@awolowiecki720), I merged in the latest Microsoft/unitysetup.powershell and resolved the merge conflict. |
- Resolves issues if recursive directories do not exist in install path for macOS.
|
wolo (@awolowiecki720), I pushed another change that addresses some more issues:
|
|
Robert Onulak (@Ziugy) question about Test-UnitySetupInstance - unlike gusi it is returning false for me unless I am in the exact path to the editor or i specify that path to pwsh; in which case I obviously know if it's installed since i can look directly at the path. Am i using this as intended or am i missing the point? |
|
I also expect we would extend |
|
wolo (@awolowiecki720) - sounds like this is working now. Can you accept the changes and approve the PR? I can merge it after that. =) |
|
CI still fails for me: Logs |
Install-UnitySetupInstanceto better support the needs for mac package installs.TODO: (non-blocking)
Investigate Unity Hub (beta) on Mac to inspect how they're getting packages installed into other directories.This is resolved using sparsebundles