Skip to content

Commit

Permalink
[skip build]Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Nickid2018 committed Jul 29, 2023
1 parent 502e3dd commit 95b3e38
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,25 +69,22 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
path: dissector
- name: Install Deps
run: sudo apt-get install cmake libglib2.0 libwireshark-dev make clang
- name: Configure dissector (Debug)
if: "!startsWith(github.ref, 'refs/tags/') || contains(github.ref, 'beta')"
run: cmake -S . -B build
working-directory: dissector
- name: Configure dissector (Release)
if: "startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta')"
run: cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
working-directory: dissector
- name: Build dissector
run: make -j8
working-directory: dissector/build
working-directory: build
- name: Upload dissector
uses: actions/upload-artifact@v2
with:
name: linux
path: dissector/build/mcdissector.so
path: build/mcdissector.so

publish:
needs: [ build-windows, build-linux ]
Expand Down
9 changes: 6 additions & 3 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Ignore Packets:阻止解析一些包,用于过滤不需要的信息。格式为以`<s|c>:<packet_name>`组成的以逗号分割的列表,其中`s`代表发向服务端的包,`c`代表发向客户端的包。默认为`c:map_chunk`,即停止解析服务端发向客户端的区块数据包,这种类型的包会使解析器消耗很长时间,并且会产生过量的数据字段,所以默认禁用。
* TCP Port(s):更改 MCJE 协议使用的 TCP 端口,用于识别协议。

### 构建项目
### 构建项目(Windows)
构建此项目需要有 Wireshark 的源码并需要配置依赖,且需要 python 用于代码生成。

1. 克隆 Wireshark 仓库到本地,配置好需要的依赖。
Expand All @@ -25,6 +25,9 @@
7. 在项目根目录运行`cmake --build build --target MC_Dissector`
8. 在 build 目录里面能看到构建出来的文件。

### 构建项目(Linux)
在 Linux 上构建要简单的多,具体看 ci.yml 就行(懒得写)。

### 解析错误
如果出现了解析错误,可能是因为还没有做好这部分的适配或相应的处理,可以在 Issues 里面提出来。

Expand All @@ -34,7 +37,7 @@

### 当前计划
- [x] 写的差不多了!(至少不炸了!)
- [x] linux 支持 by @xtexChooser
- [ ] 版本兼容性。
- [ ] 支持基岩版。
- [ ] 支持加密。
- [ ] linux 支持?
- [ ] 支持加密。
2 changes: 1 addition & 1 deletion minecraft-data

0 comments on commit 95b3e38

Please sign in to comment.