Skip to content

Commit

Permalink
Execute Unity without sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
kuler90 committed Nov 9, 2020
1 parent 76a110b commit ede4aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ async function run() {

let unityCmd = '';
if (process.platform === 'linux') {
unityCmd = `sudo xvfb-run --auto-servernum "${unityPath}"`;
unityCmd = `xvfb-run --auto-servernum "${unityPath}"`;
} else if (process.platform === 'darwin') {
unityCmd = `sudo "${unityPath}"`;
unityCmd = `"${unityPath}"`;
} else if (process.platform === 'win32') {
unityCmd = `"${unityPath}"`;
}
Expand Down

0 comments on commit ede4aee

Please sign in to comment.