Try quoting path

pull/326/head
Andrew Kahr 2022-01-26 14:21:33 -08:00
parent b3c4dc6c2c
commit 4a3b6dab05
3 changed files with 7 additions and 7 deletions

6
dist/index.js vendored
View File

@ -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;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -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 });
}
}