Skip to main content

Get CKB Binary on Windows

Please note that, 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)".

Install Tools with Scoop

  • Install Scoop.

  • Install git, llvm, yasm and rustup via Scoop.

    scoop install git
    scoop install llvm
    scoop install yasm
    scoop install rustup
  • Install dependencies.

    • Add "extras" bucket for Scoop.

      scoop bucket add extras
    • yasm requires Microsoft Visual C++ 2010 runtime Libraries.

      scoop install vcredist2010
  • Configure Rust.

    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
  • Build CKB.

    devtools/windows/make prod

Download from Releases

We publish binaries for each release via Github Releases. You can download the package directly. They requires The Visual C++ Redistributable Packages, which can be downloaded under section Other Tools and Frameworks here or here.