feature/package-development #22

Merged
ccyj merged 19 commits from feature/package-development into main 2024-05-30 16:26:59 +08:00
Showing only changes of commit d2b0fb286c - Show all commits

View File

@ -6,14 +6,10 @@
在开始使用本系统之前,请确保您的环境中安装了以下依赖:
- Python 3.6 或更高版本
- `packaging` 库:用于版本控制和比较
- `reportlab` 库:用于生成 PDF 报告
您可以通过以下命令安装必要的 Python 库:
```bash
pip install packaging reportlab
pip install -r requirements.txt
```
## 下载和配置
@ -117,40 +113,6 @@ twine upload dist/*
pip install backdoor_buster
```
### deb
#### 命令
- 安装`stdeb`
```bash
sudo apt-get install python-stdeb
```
- 创建`debian`目录
- 编写 debian/rules 文件
```makefile
#!/usr/bin/make -f
%:
dh $@
```
- 打包
```bash
python setup.py --command-packages=stdeb.command bdist_deb
```
- 构建DEB包
```bash
cd deb_dist
sudo dpkg -i backdoor_buster.deb
```
## 常见问题处理
- 确保所有路径都正确无误,避免因路径错误导致文件读取失败。