Skip to content

Commit d22ec0c

Browse files
Mac_IL2CPP component installer
1 parent d4db5cd commit d22ec0c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

UnitySetup/UnitySetup.psm1

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ enum UnitySetupComponent {
1919
Facebook = (1 -shl 11)
2020
Vuforia = (1 -shl 12)
2121
WebGL = (1 -shl 13)
22-
All = (1 -shl 14) - 1
22+
Mac_IL2CPP = (1 -shl 14)
23+
All = (1 -shl 15) - 1
2324
}
2425

2526
[Flags()]
@@ -73,14 +74,12 @@ class UnitySetupInstance {
7374
$this.Components = [UnitySetupComponent]::Windows
7475
$playbackEnginePath = [io.path]::Combine("$Path", "Editor\Data\PlaybackEngines");
7576
@{
76-
[UnitySetupComponent]::Documentation = , [io.path]::Combine("$Path", "Editor\Data\Documentation");
77-
[UnitySetupComponent]::StandardAssets = , [io.path]::Combine("$Path", "Editor\Standard Assets");
7877
[UnitySetupComponent]::Windows_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "windowsstandalonesupport\Variations\win32_development_il2cpp");
7978
[UnitySetupComponent]::UWP = [io.path]::Combine("$playbackEnginePath", "MetroSupport\Templates\UWP_.NET_D3D"),
8079
[io.path]::Combine("$playbackEnginePath", "MetroSupport\Templates\UWP_D3D");
8180
[UnitySetupComponent]::UWP_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "MetroSupport\Templates\UWP_IL2CPP_D3D");
82-
[UnitySetupComponent]::Linux = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport");
83-
[UnitySetupComponent]::Mac = , [io.path]::Combine("$playbackEnginePath", "MacStandaloneSupport");
81+
[UnitySetupComponent]::Documentation = , [io.path]::Combine("$Path", "Editor\Data\Documentation");
82+
[UnitySetupComponent]::StandardAssets = , [io.path]::Combine("$Path", "Editor\Standard Assets");
8483
}
8584
}
8685
([OperatingSystem]::Linux) {
@@ -94,13 +93,15 @@ class UnitySetupInstance {
9493
@{
9594
[UnitySetupComponent]::Documentation = , [io.path]::Combine("$Path", "Documentation");
9695
[UnitySetupComponent]::StandardAssets = , [io.path]::Combine("$Path", "Standard Assets");
96+
#[UnitySetupComponent]::Mac_IL2CPP = , [io.path]::Combine("$playbackEnginePath", "???");
9797
[UnitySetupComponent]::Windows = , [io.path]::Combine("$playbackEnginePath", "WindowsStandaloneSupport");
98-
[UnitySetupComponent]::Linux = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport");
9998
}
10099
}
101100
}
102-
101+
103102
# Common playback engines:
103+
$componentTests[[UnitySetupComponent]::Linux] = , [io.path]::Combine("$playbackEnginePath", "LinuxStandaloneSupport");
104+
$componentTests[[UnitySetupComponent]::Mac] = , [io.path]::Combine("$playbackEnginePath", "MacStandaloneSupport");
104105
$componentTests[[UnitySetupComponent]::Android] = , [io.path]::Combine("$playbackEnginePath", "AndroidPlayer");
105106
$componentTests[[UnitySetupComponent]::iOS] = , [io.path]::Combine("$playbackEnginePath", "iOSSupport");
106107
$componentTests[[UnitySetupComponent]::AppleTV] = , [io.path]::Combine("$playbackEnginePath", "AppleTVSupport");
@@ -318,7 +319,8 @@ function Find-UnitySetupInstaller {
318319
[UnitySetupComponent]::Facebook = , "$targetSupport/UnitySetup-Facebook-Games-Support-for-Editor-$Version.$installerExtension";
319320
[UnitySetupComponent]::Linux = , "$targetSupport/UnitySetup-Linux-Support-for-Editor-$Version.$installerExtension";
320321
[UnitySetupComponent]::Mac = "$targetSupport/UnitySetup-Mac-Support-for-Editor-$Version.$installerExtension",
321-
"$targetSupport/UnitySetup-Mac-Mono-Support-for-Editor-$Version.$installerExtension";
322+
"$targetSupport/UnitySetup-Mac-Mono-Support-for-Editor-$Version.$installerExtension";
323+
[UnitySetupComponent]::Mac_IL2CPP = , "$targetSupport/UnitySetup-Mac-IL2CPP-Support-for-Editor-$Version.$installerExtension";
322324
[UnitySetupComponent]::Vuforia = , "$targetSupport/UnitySetup-Vuforia-AR-Support-for-Editor-$Version.$installerExtension";
323325
[UnitySetupComponent]::WebGL = , "$targetSupport/UnitySetup-WebGL-Support-for-Editor-$Version.$installerExtension";
324326
[UnitySetupComponent]::Windows_IL2CPP = , "$targetSupport/UnitySetup-Windows-IL2CPP-Support-for-Editor-$Version.$installerExtension";

0 commit comments

Comments
 (0)