Skip to content

Commit 9115ed0

Browse files
committed
Fix paths for Linux components
1 parent 7b034af commit 9115ed0

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

UnitySetup/UnitySetup.psm1

+11-4
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,15 @@ class UnitySetupInstance {
8080
}
8181
([OperatingSystem]::Linux) {
8282
$this.Components = [UnitySetupComponent]::Linux
83-
$playbackEnginePath = [io.path]::Combine("$Path", "Data/PlaybackEngines");
83+
$playbackEnginePath = [io.path]::Combine("$Path", "Editor/Data/PlaybackEngines");
8484
@{
8585
[UnitySetupComponent]::Documentation = , [io.path]::Combine("$Path", "Documentation");
8686
[UnitySetupComponent]::StandardAssets = , [io.path]::Combine("$Path", "Standard Assets");
87-
[UnitySetupComponent]::Mac_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "MacStandaloneSupport/Variations/macosx64_development_il2cpp");
87+
[UnitySetupComponent]::Mac = , [io.path]::Combine("$playbackEnginePath", "MacStandaloneSupport/Variations/macos_x64_player_development_mono");
88+
[UnitySetupComponent]::Mac_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "MacStandaloneSupport/Variations/macos_x64_player_development_il2cpp");
8889
[UnitySetupComponent]::Windows = , [io.path]::Combine("$playbackEnginePath", "WindowsStandaloneSupport");
89-
[UnitySetupComponent]::Linux = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport/Variations/linux64_headless_development_mono");
90-
[UnitySetupComponent]::Linux_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport/Variations/linux64_headless_development_il2cpp");
90+
[UnitySetupComponent]::Linux_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport/Variations/linux64_player_development_il2cpp");
91+
[UnitySetupComponent]::Linux_Server = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport/Variations/linux64_server_development_mono");
9192
}
9293
}
9394
([OperatingSystem]::Mac) {
@@ -113,8 +114,14 @@ class UnitySetupInstance {
113114
$componentTests[[UnitySetupComponent]::Vuforia] = , [io.path]::Combine("$playbackEnginePath", "VuforiaSupport");
114115
$componentTests[[UnitySetupComponent]::WebGL] = , [io.path]::Combine("$playbackEnginePath", "WebGLSupport");
115116

117+
Write-Verbose "path: $Path"
116118
$componentTests.Keys | ForEach-Object {
117119
foreach ( $test in $componentTests[$_] ) {
120+
121+
# Write-Verbose "_: $_"
122+
# Write-Verbose "test: $test"
123+
# Write-Verbose ""
124+
118125
if ( Test-Path -PathType Container -Path $test ) {
119126
$this.Components += $_
120127
break;

0 commit comments

Comments
 (0)