|
1 | | -# Copyright (c) Microsoft Corporation. All rights reserved. |
| 1 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
2 | 2 | # Licensed under the MIT License. |
3 | 3 | Import-Module powershell-yaml -MinimumVersion '0.3' -ErrorAction Stop |
4 | 4 |
|
@@ -77,8 +77,15 @@ class UnitySetupInstance { |
77 | 77 | } |
78 | 78 | ([OperatingSystem]::Linux) { |
79 | 79 | $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 | + } |
82 | 89 | } |
83 | 90 | ([OperatingSystem]::Mac) { |
84 | 91 | $this.Components = [UnitySetupComponent]::Mac |
@@ -286,7 +293,11 @@ function Get-UnityEditor { |
286 | 293 | } |
287 | 294 | } |
288 | 295 | ([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 | + } |
290 | 301 | } |
291 | 302 | ([OperatingSystem]::Mac) { |
292 | 303 | $editor = Join-Path "$p" "Unity.app/Contents/MacOS/Unity" |
@@ -1196,7 +1207,9 @@ function Get-UnitySetupInstance { |
1196 | 1207 | } |
1197 | 1208 | } |
1198 | 1209 | ([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 | + } |
1200 | 1213 | } |
1201 | 1214 | ([OperatingSystem]::Mac) { |
1202 | 1215 | if (-not $BasePath) { |
|
0 commit comments