From 8c041c0b35180c61caf612553108b3469070b816 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Mon, 24 Nov 2025 14:24:49 -0400 Subject: [PATCH] Pass `windowsHide: true` when spawning the binary on the NPM wrapper See: https://github.com/sourcemeta/studio/issues/66 Signed-off-by: Juan Cruz Viotti --- npm-deploy.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/npm-deploy.sh b/npm-deploy.sh index 4a7b2e0d..892e11f0 100755 --- a/npm-deploy.sh +++ b/npm-deploy.sh @@ -129,8 +129,12 @@ if (PLATFORM === 'darwin') { child_process.spawnSync('/usr/bin/xattr', [ '-c', EXECUTABLE ], { stdio: 'inherit' }); } -const result = child_process.spawnSync(EXECUTABLE, - process.argv.slice(2), { stdio: 'inherit' }); +const result = child_process.spawnSync(EXECUTABLE, process.argv.slice(2), { + stdio: 'inherit', + // Do not open a command prompt on spawning + windowsHide: true +}); + process.exit(result.status); EOF