From 18e6eac11678e14016bb60522b040a46e290f9be Mon Sep 17 00:00:00 2001
From: bdoherty <github@doherty.net.nz>
Date: Wed, 31 Aug 2022 07:31:03 +1200
Subject: [PATCH] Conditionally set MSYS

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
---
 packages/loot-core/bin/build-browser | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/packages/loot-core/bin/build-browser b/packages/loot-core/bin/build-browser
index 2e0d16808..c2888de82 100755
--- a/packages/loot-core/bin/build-browser
+++ b/packages/loot-core/bin/build-browser
@@ -22,7 +22,10 @@ if [ $NODE_ENV == 'development' ]; then
   # Make sure to do this before starting the build since watch mode
   # will block
   WEBPACK_ARGS="$WEBPACK_ARGS --watch"
-  export MSYS=winsymlinks:nativestrict
+  if [ "$OSTYPE" == "msys" ]; then
+    // Ensure symlinks are created as native Windows symlinks.
+    export MSYS=winsymlinks:nativestrict
+  fi
   ln -snf "$ROOT"/../lib-dist/browser ../../desktop-client/public/kcab
 fi
 
-- 
GitLab