fix(build): ensure_electron 始终补写 path.txt

This commit is contained in:
AskaEth committed 2026-09-09 21:11:50 +08:00
1 parent d5b45761d7
commit fc3361f766
1 file changed
+3
+3
View File
@@ -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% ...