Please note that Support for Windows is experimental. CKB is known to have serious performance issues when running in Windows. All commands listed below should be used through PowerShell.
Build from Source
Setup the Build Environment
Install Visual Studio 2019
Install Visual Studio 2019 with the workload: "Desktop development with C++".
minimum requirements: You can just select two individual components: "MSVC v142 - VS 2019 C++ x64/x86 build tools (vXX.XX)" and "Windows 10 SDK (10.0.X.0)".
scoop install git scoop install llvm scoop install yasm scoop install rustup
rustup set default-host x86_64-pc-windows-msvc
Build CKB on Windows 10
Checkout the source code of CKB.
git clone https://github.com/nervosnetwork/ckb cd ckb
Download from Releases
We publish binaries for each release via Github Releases. You can download the package directly.The Windows packages are for experiments only and have significant performance issues, we don't recommend to use them in production environment.They requires The Visual C++ Redistributable Packages, which can be downloaded under section Other Tools and Frameworks here or here.