diff --git a/dist/index.js b/dist/index.js index ec837da4..fcb92b1b 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index cd41e3a6..e0a7cba7 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/platform-setup/setup-mac.ts b/src/model/platform-setup/setup-mac.ts index 10f7cfd3..2cac03f6 100644 --- a/src/model/platform-setup/setup-mac.ts +++ b/src/model/platform-setup/setup-mac.ts @@ -32,11 +32,23 @@ class SetupMac { private static async installUnity(buildParameters: BuildParameters, silent = false) { const unityChangeset = await getUnityChangeset(buildParameters.editorVersion); - const command = `${this.unityHubPath} -- --headless install \ + let command = `${this.unityHubPath} -- --headless install \ --version ${buildParameters.editorVersion} \ - --changeset ${unityChangeset.changeset} \ - --module mac-il2cpp \ - --childModules`; + --changeset ${unityChangeset.changeset} `; + + switch (buildParameters.targetPlatform) { + case 'iOS': + command += `--module ios `; + break; + case 'StandaloneOSX': + command += `--module mac-il2cpp `; + break; + case 'android': + command += `--module android `; + break; + } + + command += `--childModules`; // Ignoring return code because the log seems to overflow the internal buffer which triggers // a false error