start-hfs.bat

Massimo Melina committed Dec 20, 2025 at 15:23 UTC 4e4b965b18de022c67dc6511b9540c8df79a8809
1 file changed +16
start-hfs.bat new
+16
@@ -0,0 +1,16 @@
1 +:: Experimental - The idea is to distribute this bat file to run HFS on Windows as an alternative to the binary version
2 +@echo off
3 +setlocal EnableExtensions
4 +node -v >nul 2>&1
5 +if errorlevel 1 (
6 + echo Node.js not found in PATH. Installing with winget...
7 + winget install OpenJS.NodeJS -e --scope machine --version 22.*
8 + echo Installation finished. Please close this terminal then run this script again.
9 + pause
10 + exit /b 1
11 +)
12 +echo Starting HFS...
13 +@move /y hfs.exe hfs1.exe
14 +set UV_THREADPOOL_SIZE=32 && npx -y hfs@latest --cwd . %*
15 +@move /y hfs1.exe hfs.exe
16 +pause
\ No newline at end of file