@@ -77,8 +77,15 @@ class UnitySetupInstance {
7777 }
7878 ([OperatingSystem ]::Linux) {
7979 $this.Components = [UnitySetupComponent ]::Linux
80-
81- throw " UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed!" ;
80+ $playbackEnginePath = [io.path ]::Combine(" $Path " , " Data/PlaybackEngines" );
81+ @ {
82+ [UnitySetupComponent ]::Documentation = , [io.path ]::Combine(" $Path " , " Documentation" );
83+ [UnitySetupComponent ]::StandardAssets = , [io.path ]::Combine(" $Path " , " Standard Assets" );
84+ [UnitySetupComponent ]::Mac_IL2CPP = , [io.path ]::Combine(" $playbackEnginePath " , " MacStandaloneSupport/Variations/macosx64_development_il2cpp" );
85+ [UnitySetupComponent ]::Windows = , [io.path ]::Combine(" $playbackEnginePath " , " WindowsStandaloneSupport" );
86+ [UnitySetupComponent ]::Linux = , [io.path ]::Combine(" $playbackEnginePath " , " LinuxStandaloneSupport/Variations/linux64_headless_development_mono" );
87+ [UnitySetupComponent ]::Linux_IL2CPP = , [io.path ]::Combine(" $playbackEnginePath " , " LinuxStandaloneSupport/Variations/linux64_headless_development_il2cpp" );
88+ }
8289 }
8390 ([OperatingSystem ]::Mac) {
8491 $this.Components = [UnitySetupComponent ]::Mac
@@ -286,7 +293,11 @@ function Get-UnityEditor {
286293 }
287294 }
288295 ([OperatingSystem ]::Linux) {
289- throw " Get-UnityEditor has not been implemented on the Linux platform. Contributions welcomed!" ;
296+ $editor = Join-Path " $p " ' Editor/Unity'
297+
298+ if (Test-Path $editor ) {
299+ Write-Output (Resolve-Path $editor ).Path
300+ }
290301 }
291302 ([OperatingSystem ]::Mac) {
292303 $editor = Join-Path " $p " " Unity.app/Contents/MacOS/Unity"
@@ -1196,7 +1207,9 @@ function Get-UnitySetupInstance {
11961207 }
11971208 }
11981209 ([OperatingSystem ]::Linux) {
1199- throw " Get-UnitySetupInstance has not been implemented on the Linux platform. Contributions welcomed!" ;
1210+ if (-not $BasePath ) {
1211+ $BasePath = @ (' ~/Unity/Hub/Editor/*' )
1212+ }
12001213 }
12011214 ([OperatingSystem ]::Mac) {
12021215 if (-not $BasePath ) {
0 commit comments