feature/package-development #22
@ -6,14 +6,10 @@
|
|||||||
|
|
||||||
在开始使用本系统之前,请确保您的环境中安装了以下依赖:
|
在开始使用本系统之前,请确保您的环境中安装了以下依赖:
|
||||||
|
|
||||||
- Python 3.6 或更高版本
|
|
||||||
- `packaging` 库:用于版本控制和比较
|
|
||||||
- `reportlab` 库:用于生成 PDF 报告
|
|
||||||
|
|
||||||
您可以通过以下命令安装必要的 Python 库:
|
您可以通过以下命令安装必要的 Python 库:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install packaging reportlab
|
pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
## 下载和配置
|
## 下载和配置
|
||||||
@ -117,40 +113,6 @@ twine upload dist/*
|
|||||||
pip install backdoor_buster
|
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
|
|
||||||
```
|
|
||||||
|
|
||||||
## 常见问题处理
|
## 常见问题处理
|
||||||
|
|
||||||
- 确保所有路径都正确无误,避免因路径错误导致文件读取失败。
|
- 确保所有路径都正确无误,避免因路径错误导致文件读取失败。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user