From 5b3b2fda1453aaaa8019e608a9291ddbbf1161b9 Mon Sep 17 00:00:00 2001 From: Kendal Cormany Date: Sat, 16 Nov 2024 16:15:24 -0700 Subject: [PATCH] only do postInstall if NOT in dev mode --- scripts/todesktop/postInstall.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/todesktop/postInstall.js b/scripts/todesktop/postInstall.js index 45dd543a..708bef16 100644 --- a/scripts/todesktop/postInstall.js +++ b/scripts/todesktop/postInstall.js @@ -10,12 +10,12 @@ async function postInstall() { if (!firstInstallOnToDesktopServers) return; - console.log(process.env); + console.log('After Yarn Install ' , os.platform()); - if (process.env.TODESKTOP_INITIAL_INSTALL_PHASE){ - + if (!process.env.NODE_ENV || process.env.NODE_ENV != 'development'){ + console.log(process.env); if (os.platform() === "win32") { // Change stdio to get back the logs if there are issues.