From 0f3071d4a547bbf6b3111f57f5dd6a221d54dde0 Mon Sep 17 00:00:00 2001
From: Frankly George <54015-franklygeorge@users.noreply.gitgud.io>
Date: Sat, 23 Mar 2024 19:07:26 +0000
Subject: [PATCH] Removed unneeded check on Windows that was causing an error
 message in FCHost launcher

---
 devTools/scripts/FCHostInstallAndRun.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/devTools/scripts/FCHostInstallAndRun.js b/devTools/scripts/FCHostInstallAndRun.js
index 7184a331c51..96a3e8d2768 100644
--- a/devTools/scripts/FCHostInstallAndRun.js
+++ b/devTools/scripts/FCHostInstallAndRun.js
@@ -23,7 +23,7 @@ let windowsLink = "https://mega.nz/file/AFhTxLxR#fQgZFswJHVLpLlY5BzhTPmUKtmISeHd
 
 let wineExists = false;
 try {
-	if (execSync("command -v wine").toString().trim() !== "") { wineExists = true; }
+	if (process.platform !== "win32" && execSync("command -v wine").toString().trim() !== "") { wineExists = true; }
 } catch (e) {
 	// fail silently
 	// console.log(e);
@@ -76,14 +76,14 @@ if (
 		if (choice === "Yes") {
 			// download FCHost
 			const file = File.fromURL(megaLink);
-	
+
 			// @ts-ignore
 			await file.loadAttributes();
 			console.log(`Downloading ${file.name} with a size of ${file.size} bytes`);
-	
+
 			// if zipLocation exists then remove it
 			jetpack.remove(zipLocation);
-	
+
 			// @ts-ignore
 			const data = await file.downloadBuffer();
 			// check that buffer size is the same as file.size
@@ -93,7 +93,7 @@ if (
 				process.exit();
 			}
 			jetpack.write(zipLocation, data, {atomic: true});
-	
+
 			// create settings.FCHostPath directory
 			if (jetpack.exists(settings.FCHostPath) === "file") {
 				// I don't know how we got both a folder and a file with the same name, but that is invalid on Windows
-- 
GitLab