Install mac modules based on target platform for greater flexibility (#481)
parent
5bd589e19f
commit
9329b7369c
|
@ -6852,11 +6852,21 @@ class SetupMac {
|
||||||
static installUnity(buildParameters, silent = false) {
|
static installUnity(buildParameters, silent = false) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const unityChangeset = yield unity_changeset_1.getUnityChangeset(buildParameters.editorVersion);
|
const unityChangeset = yield unity_changeset_1.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 \
|
switch (buildParameters.targetPlatform) {
|
||||||
--childModules`;
|
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
|
||||||
const errorCode = yield exec_1.exec(command, undefined, { silent, ignoreReturnCode: true });
|
const errorCode = yield exec_1.exec(command, undefined, { silent, ignoreReturnCode: true });
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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