Skip to content

Commit 2a8668f

Browse files
authored
add desc support of windows developer (#64)
1 parent 8e2ff1a commit 2a8668f

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

DEVELOP.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
目前启动后的端口是固定的20242 (也就是2024年2月开始开发的意思)
1515

16-
## 环境配置
16+
## Mac or Linux环境配置
1717

1818
```bash
1919
# install poetry (python package manager)
@@ -34,6 +34,33 @@ make dev
3434
pip install construct==2.9.45
3535
```
3636

37+
## Windows环境配置
38+
39+
```bash
40+
# install poetry (python package manager)
41+
pip install poetry # pipx install poetry
42+
43+
# install deps
44+
poetry install
45+
46+
# install make, choco ref: https://community.chocolatey.org/install
47+
# Set-ExecutionPolicy Bypass -Scope Process -Force;
48+
# [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
49+
# iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
50+
choco install make
51+
52+
# format import
53+
make format
54+
55+
# run server
56+
make dev
57+
58+
# If you encounter the error NameError: name 'int2byte' is not defined,
59+
# try installing a stable version of the construct package to resolve it:
60+
# and restart: make dev
61+
pip install construct==2.9.45
62+
```
63+
3764
运行测试
3865

3966
```sh

0 commit comments

Comments
 (0)