Fix formatting

pull/326/head
Andrew Kahr 2022-02-01 16:09:12 -08:00
parent 80b1d4bd11
commit bc513b86b2
3 changed files with 98 additions and 98 deletions

12
dist/index.js vendored
View File

@ -4165,8 +4165,8 @@ class SetupMac {
return __awaiter(this, void 0, void 0, function* () {
const command = 'brew install unity-hub';
if (!fs_1.default.existsSync(this.unityHubPath)) {
//Ignoring return code because the log seems to overflow the internal buffer which triggers
//a false error
// Ignoring return code because the log seems to overflow the internal buffer which triggers
// a false error
const errorCode = yield exec_1.exec(command, undefined, { silent, ignoreReturnCode: true });
if (errorCode) {
throw new Error(`There was an error installing the Unity Editor. See logs above for details.`);
@ -4182,8 +4182,8 @@ class SetupMac {
--changeset ${unityChangeset.changeset} \
--module mac-il2cpp \
--childModules`;
//Ignoring return code because the log seems to overflow the internal buffer which triggers
//a false error
// Ignoring return code because the log seems to overflow the internal buffer which triggers
// a false error
const errorCode = yield exec_1.exec(command, undefined, { silent, ignoreReturnCode: true });
if (errorCode) {
throw new Error(`There was an error installing the Unity Editor. See logs above for details.`);
@ -4192,8 +4192,8 @@ class SetupMac {
}
static setEnvironmentVariables(buildParameters, actionFolder) {
return __awaiter(this, void 0, void 0, function* () {
//Need to set environment variables from here because we execute
//the scripts on the host for mac
// Need to set environment variables from here because we execute
// the scripts on the host for mac
process.env.ACTION_FOLDER = actionFolder;
process.env.UNITY_VERSION = buildParameters.version;
process.env.UNITY_SERIAL = buildParameters.unitySerial;

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -23,13 +23,13 @@ async function runMain() {
await CloudRunner.run(buildParameters, baseImage.toString());
} else {
core.info('Building locally');
await PlatformSetup.setup(buildParameters, actionFolder);
if (process.platform === 'darwin') {
MacBuilder.run(actionFolder, workspace, buildParameters);
} else {
builtImage = await Docker.build({ path: actionFolder, dockerfile, baseImage });
await Docker.run(builtImage, { workspace, ...buildParameters });
}
await PlatformSetup.setup(buildParameters, actionFolder);
if (process.platform === 'darwin') {
MacBuilder.run(actionFolder, workspace, buildParameters);
} else {
builtImage = await Docker.build({ path: actionFolder, dockerfile, baseImage });
await Docker.run(builtImage, { workspace, ...buildParameters });
}
}
// Set output