Skip to content

Commit 1533984

Browse files
committed
Fix empty unity console output on windows
1 parent ede4aee commit 1533984

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/build.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function run() {
2424

2525
if (!buildMethod) {
2626
buildMethod = 'kuler90.BuildCommand.Build';
27-
const src = path.join(__dirname, 'BuildCommand.cs')
27+
const src = path.join(__dirname, 'BuildCommand.cs');
2828
const dest = path.join(projectPath, 'Assets/kuler90/Editor');
2929
await io.mkdirP(dest);
3030
await io.cp(src, dest);
@@ -33,9 +33,7 @@ async function run() {
3333
let unityCmd = '';
3434
if (process.platform === 'linux') {
3535
unityCmd = `xvfb-run --auto-servernum "${unityPath}"`;
36-
} else if (process.platform === 'darwin') {
37-
unityCmd = `"${unityPath}"`;
38-
} else if (process.platform === 'win32') {
36+
} else {
3937
unityCmd = `"${unityPath}"`;
4038
}
4139

@@ -67,7 +65,7 @@ async function run() {
6765
buildArgs += ` -androidKeyaliasPass "${androidKeyaliasPass}"`;
6866
}
6967

70-
await exec.exec(`${unityCmd} -batchmode -nographics -quit -logFile ${buildArgs}`);
68+
await exec.exec(`${unityCmd} -batchmode -nographics -quit -logFile "-" ${buildArgs}`);
7169

7270
core.setOutput('build-path', buildPath);
7371
} catch (error) {

0 commit comments

Comments
 (0)