From fc3361f7662470831d9935f55f41a4bbbdf3a6dc Mon Sep 17 00:00:00 2001 From: AskaEth Date: Wed, 9 Sep 2026 21:11:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20ensure=5Felectron=20=E5=A7=8B?= =?UTF-8?q?=E7=BB=88=E8=A1=A5=E5=86=99=20path.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/build.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/deploy/build.bat b/deploy/build.bat index 60a67c3..fc6d22b 100644 --- a/deploy/build.bat +++ b/deploy/build.bat @@ -67,6 +67,9 @@ exit /b 0 REM ---- ensure the electron runtime binary is present (pnpm skips its postinstall) -- :ensure_electron +REM path.txt tells the electron package where the binary is; without it +REM electron-builder tries to download the runtime and hits a Node 24 bug. +if not exist node_modules\electron\path.txt echo electron.exe> node_modules\electron\path.txt if exist node_modules\electron\dist\electron.exe exit /b 0 set "EV=38.8.6" echo downloading electron %EV% ...