| 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 |