mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Install mac modules based on target platform for greater flexibility (#481)
This commit is contained in:
parent
5bd589e19f
commit
9329b7369c
BIN
dist/index.js
generated
vendored
BIN
dist/index.js
generated
vendored
Binary file not shown.
BIN
dist/index.js.map
generated
vendored
BIN
dist/index.js.map
generated
vendored
Binary file not shown.
@ -32,11 +32,23 @@ class SetupMac {
|
|||||||
|
|
||||||
private static async installUnity(buildParameters: BuildParameters, silent = false) {
|
private static async installUnity(buildParameters: BuildParameters, silent = false) {
|
||||||
const unityChangeset = await getUnityChangeset(buildParameters.editorVersion);
|
const unityChangeset = await getUnityChangeset(buildParameters.editorVersion);
|
||||||
const command = `${this.unityHubPath} -- --headless install \
|
let command = `${this.unityHubPath} -- --headless install \
|
||||||
--version ${buildParameters.editorVersion} \
|
--version ${buildParameters.editorVersion} \
|
||||||
--changeset ${unityChangeset.changeset} \
|
--changeset ${unityChangeset.changeset} `;
|
||||||
--module mac-il2cpp \
|
|
||||||
--childModules`;
|
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
|
// Ignoring return code because the log seems to overflow the internal buffer which triggers
|
||||||
// a false error
|
// a false error
|
||||||
|
Loading…
Reference in New Issue
Block a user