mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
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:
parent
584c0366c6
commit
fb5b03c3b8
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.
@ -9,9 +9,11 @@ class SetupMac {
|
||||
public static async setup(buildParameters: BuildParameters, actionFolder: string) {
|
||||
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.existsSync(unityEditorPath)) {
|
||||
if (!fs.existsSync(this.unityHubPath)) {
|
||||
await SetupMac.installUnityHub();
|
||||
}
|
||||
|
||||
if (!fs.existsSync(unityEditorPath)) {
|
||||
await SetupMac.installUnity(buildParameters);
|
||||
}
|
||||
|
||||
@ -40,12 +42,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`;
|
||||
|
Loading…
Reference in New Issue
Block a user