From ede4aeec8d0d36b6c746f8188887371b310a5327 Mon Sep 17 00:00:00 2001 From: Kulesha Roman Date: Sun, 8 Nov 2020 22:48:03 +0300 Subject: [PATCH] Execute Unity without sudo --- src/build.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/build.js b/src/build.js index 3c71e03..db00daf 100644 --- a/src/build.js +++ b/src/build.js @@ -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}"`; }