From 33ce9b1ba725e44d0a878037ba397ad176e6a1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Sat, 8 Aug 2026 19:46:14 +0200 Subject: [PATCH] fix: factory kit has wrong mac/linux command --- src/routes/(app)/ccos/[device]/[version]/factory-kit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/(app)/ccos/[device]/[version]/factory-kit.ts b/src/routes/(app)/ccos/[device]/[version]/factory-kit.ts index c6a14180..05d312ba 100644 --- a/src/routes/(app)/ccos/[device]/[version]/factory-kit.ts +++ b/src/routes/(app)/ccos/[device]/[version]/factory-kit.ts @@ -73,7 +73,8 @@ export async function assembleFactoryKit( zip.file(file, dataPromise); } - const esptoolScript = ".\\esptool\\esptool.exe"; + const esptoolScript = + os === "Windows" ? ".\\esptool\\esptool.exe" : "esptool"; const port = "%1"; const ext = os === "Windows" ? "bat" : "sh"; zip.file(