Skip to content

Commit

Permalink
add installation windows doc (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
WGB5445 authored Sep 25, 2023
1 parent 6609d03 commit 39d5252
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 2 deletions.
35 changes: 34 additions & 1 deletion docs/website/pages/docs/developer-guides/installation.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,40 @@ cd rooch && cargo build && cp target/debug/rooch ~/.cargo/bin/

### Windows

TODO
#### Installing Dependencies
To compile Rooch on Windows, you'll need to install the following dependencies:

1. [Build Tools for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/)
2. [LLVM](https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.1)
3. [Git](https://git-scm.com/downloads)

Make sure to install these dependencies and set up the necessary environment variables.

#### Installing Rust
Download the Rust toolchain by clicking [here](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe).

#### Cloning the Source Code
Use the following command to clone the Rooch source code repository:

```shell
git clone https://github.com/rooch-network/rooch.git
```

#### Compiling and Installing Rooch
Navigate to the Rooch project directory:
```shell
cd rooch
```

Build Rooch using the following command:
```shell
cargo build
```

Finally, copy the compiled Rooch binary to your Cargo bin directory:
```shell
cp target/debug/rooch.exe ~/.cargo/bin/
```

### macOS

Expand Down
33 changes: 32 additions & 1 deletion docs/website/pages/docs/developer-guides/installation.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,38 @@ cd rooch && cargo build && cp target/debug/rooch ~/.cargo/bin/

### Windows

TODO
#### 安装依赖

要在Windows上编译Rooch,您需要安装以下依赖项:
1. [Build Tools for Visual Studio 2022](https://visualstudio.microsoft.com/downloads/)
2. [LLVM](https://github.com/llvm/llvm-project/releases/tag/llvmorg-17.0.1)
3. [Git](https://git-scm.com/downloads)

请确保安装这些依赖项并设置必要的环境变量。

#### 安装 Rust
下载安装 Windows Rust 工具链
1. [https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe](https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe)

#### 克隆源码

```shell
git clone https://github.com/rooch-network/rooch.git
```

#### 编译并安装 Rooch

```shell
cd rooch
```

```shell
cargo build
```

```shell
cp target/debug/rooch.exe ~/.cargo/bin/
```

### macOS

Expand Down

0 comments on commit 39d5252

Please sign in to comment.