igneum/proto-cuda/windows-node/BUILD-NODE.bat
igneum-labs 3e1ecab245 Windows node package: igneumd cross-compiled for the PC, START-NODE and BUILD-NODE launchers
proto-cuda/windows-node/: START-NODE.bat and start-node.ps1 (igneumd
--devnet with --addpeer to the Mac, status line every 30 s through
igneum-miner watch, keep-awake, random-delay restart, Ctrl+C),
BUILD-NODE.bat and build-node.ps1 (builds on the PC from the src.zip
snapshot; winget for Rustup, LLVM and protoc; MSVC default toolset),
ALLOW-FIREWALL.bat and allow-firewall.ps1, README.txt, cross-build.sh
(the mingw-w64 recipe that built igneumd.exe in 8 min 25 s; the exe
ships with the three mingw runtime DLLs) and make-package.sh.
WINDOWS-MINER.md gains "Run your own node"; bench-log records the
cross-compile and the two-peer sync test on the Mac (ports 27000 and
27010, live node untouched). The mining launcher's NODE_HOST=auto
edit stays uncommitted for the agent that owns start-mining.ps1.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-03 20:54:27 +00:00

28 lines
1.5 KiB
Batchfile

@echo off
rem Builds igneumd.exe (the Igneum node) on this PC from the source snapshot in src.zip. Double-click this file.
rem Only needed when igneumd.exe is not already in this folder. It installs Rust, LLVM and protoc with winget when they
rem are missing, uses the Visual Studio C++ toolset already on the PC, and runs cargo build --release -p kaspad
rem --features igneum-pow (about 15 to 25 minutes the first time on a 9800X3D, approximate). A progress line prints
rem every minute; cargo's own output goes to build-<stamp>.cargo.log next to this file.
rem ---- settings -----------------------------------------------------------------------------------
rem Visual Studio: only the path is needed; the default toolset of that installation is used.
set "VCVARS=C:\Program Files\Microsoft Visual Studio\18\Community\VC\Auxiliary\Build\vcvarsall.bat"
rem -------------------------------------------------------------------------------------------------
cd /d "%~dp0"
if not exist "%~dp0build-node.ps1" (
echo Please extract the whole zip first ^(right-click, Extract All^), then run BUILD-NODE.bat from the extracted folder.
pause
exit /b 1
)
where powershell >nul 2>nul
if errorlevel 1 (
echo PowerShell was not found. Windows 10 and 11 ship it; nothing else can be done here.
pause
exit /b 1
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0build-node.ps1"
echo.
echo The build has finished ^(see the lines above^). If igneumd.exe is now in this folder, run START-NODE.bat.
pause