diff --git a/dist/.DS_Store b/dist/.DS_Store new file mode 100644 index 00000000..b1ba203a Binary files /dev/null and b/dist/.DS_Store differ diff --git a/dist/index.js b/dist/index.js index bad063c0..e1b0f3dc 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 578c1477..7354623d 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 16164cb3..f59110bd 100644 --- a/src/model/platform-setup/setup-mac.ts +++ b/src/model/platform-setup/setup-mac.ts @@ -12,11 +12,11 @@ class SetupMac { public static async setup(buildParameters: BuildParameters, actionFolder: string) { const unityEditorPath = `/Applications/Unity/Hub/Editor/${buildParameters.editorVersion}/Unity.app/Contents/MacOS/Unity`; - if (!fs.existsSync(this.unityHubExecPath)) { + if (!fs.existsSync(this.unityHubExecPath.replace(/"/g, ''))) { await SetupMac.installUnityHub(buildParameters); } - if (!fs.existsSync(unityEditorPath)) { + if (!fs.existsSync(unityEditorPath.replace(/"/g, ''))) { await SetupMac.installUnity(buildParameters); } @@ -122,11 +122,9 @@ class SetupMac { '--childModules', ]; - const escapedExecPath = this.unityHubExecPath.replace(/ /g, '\\ '); - // Ignoring return code because the log seems to overflow the internal buffer which triggers // a false error - const errorCode = await exec(escapedExecPath, execArguments, { silent, ignoreReturnCode: true }); + const errorCode = await exec(this.unityHubExecPath, execArguments, { silent, ignoreReturnCode: true }); if (errorCode) { throw new Error(`There was an error installing the Unity Editor. See logs above for details.`); }