Improve mac unity setup steps (#501)
* Improve mac unity setup steps * Remove silent flag on hub install --------- Co-authored-by: David Finol <davidmfinol@gmail.com>
This commit is contained in:
15
dist/index.js
generated
vendored
15
dist/index.js
generated
vendored
@@ -7433,9 +7433,10 @@ class SetupMac {
|
||||
static setup(buildParameters, actionFolder) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const unityEditorPath = `/Applications/Unity/Hub/Editor/${buildParameters.editorVersion}/Unity.app/Contents/MacOS/Unity`;
|
||||
// Only install unity if the editor doesn't already exist
|
||||
if (!fs_1.default.existsSync(unityEditorPath)) {
|
||||
if (!fs_1.default.existsSync(this.unityHubPath)) {
|
||||
yield SetupMac.installUnityHub();
|
||||
}
|
||||
if (!fs_1.default.existsSync(unityEditorPath)) {
|
||||
yield SetupMac.installUnity(buildParameters);
|
||||
}
|
||||
yield SetupMac.setEnvironmentVariables(buildParameters, actionFolder);
|
||||
@@ -7464,12 +7465,20 @@ class SetupMac {
|
||||
case 'iOS':
|
||||
command += `--module ios `;
|
||||
break;
|
||||
case 'tvOS':
|
||||
command += '--module tvos ';
|
||||
break;
|
||||
case 'StandaloneOSX':
|
||||
command += `--module mac-il2cpp `;
|
||||
break;
|
||||
case 'android':
|
||||
case 'Android':
|
||||
command += `--module android `;
|
||||
break;
|
||||
case 'WebGL':
|
||||
command += '--module webgl ';
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unsupported module for target platform: ${buildParameters.targetPlatform}.`);
|
||||
}
|
||||
command += `--childModules`;
|
||||
// Ignoring return code because the log seems to overflow the internal buffer which triggers
|
||||
|
||||
Reference in New Issue
Block a user