Try quoting path
parent
b3c4dc6c2c
commit
4a3b6dab05
|
|
@ -1373,7 +1373,7 @@ class SetupMac {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const command = 'brew install unity-hub';
|
||||
if (!fs_1.default.existsSync(this.unityHubPath)) {
|
||||
yield exec_1.exec(command, [], { silent });
|
||||
yield exec_1.exec(command, undefined, { silent });
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
@ -1385,11 +1385,11 @@ class SetupMac {
|
|||
--changeset ${changeset} \
|
||||
--module mac-il2cpp \
|
||||
--childModules`;
|
||||
yield exec_1.exec(command, [], { silent });
|
||||
yield exec_1.exec(command, undefined, { silent });
|
||||
});
|
||||
}
|
||||
}
|
||||
SetupMac.unityHubPath = '/Applications/Unity\\ Hub.app/Contents/MacOS/Unity\\ Hub';
|
||||
SetupMac.unityHubPath = `"/Applications/Unity Hub.app/Contents/MacOS/Unity Hub"`;
|
||||
exports.default = SetupMac;
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@ import { exec } from '@actions/exec';
|
|||
import fs from 'fs';
|
||||
|
||||
class SetupMac {
|
||||
static unityHubPath = '/Applications/Unity\\ Hub.app/Contents/MacOS/Unity\\ Hub';
|
||||
static unityHubPath = `"/Applications/Unity Hub.app/Contents/MacOS/Unity Hub"`;
|
||||
public static async setup(buildParameters: BuildParameters, actionFolder: string) {
|
||||
const unityEditorPath = `/Applications/Unity/Hub/Editor/${buildParameters.version}/Unity.app/Contents/MacOS/Unity`;
|
||||
if (!fs.existsSync(unityEditorPath)) {
|
||||
|
|
@ -41,7 +41,7 @@ class SetupMac {
|
|||
private static async installUnityHub(silent = false) {
|
||||
const command = 'brew install unity-hub';
|
||||
if (!fs.existsSync(this.unityHubPath)) {
|
||||
await exec(command, [], { silent });
|
||||
await exec(command, undefined, { silent });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -52,7 +52,7 @@ class SetupMac {
|
|||
--changeset ${changeset} \
|
||||
--module mac-il2cpp \
|
||||
--childModules`;
|
||||
await exec(command, [], { silent });
|
||||
await exec(command, undefined, { silent });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue