docs: 更新README,添加安装和卸载说明

This commit is contained in:
2026-07-12 20:11:25 +08:00
parent 80b1d4b8db
commit cd82a21170
+25 -5
View File
@@ -13,23 +13,42 @@ Deepin显卡驱动管理任务栏插件,集成到DDE Shell任务栏中,提
## 依赖项
- dde-shell >= 2.0
- Qt6 >= 6.0
- Dtk6 >= 6.0
- Dtk6 Core
- deepin-graphics-driver-manager(运行时依赖)
## 构建
```bash
# 安装构建依赖
sudo apt build-dep .
sudo apt install -y cmake g++ qt6-base-dev qt6-tools-dev libdtk6core-dev
# 构建项目
cmake -Bbuild
cmake --build build
```
# 安装插件
cmake --install build
## 安装
```bash
# 安装插件到系统
sudo cmake --install build
# 重启任务栏加载插件
systemctl --user restart dde-shell
```
或者注销并重新登录。
## 卸载
```bash
# 卸载插件
sudo rm -f /usr/lib/x86_64-linux-gnu/dde-shell/libdde-graphics-driver.so
sudo rm -rf /usr/lib/x86_64-linux-gnu/dde-shell/org.deepin.ds.graphics-driver
# 重启任务栏
systemctl --user restart dde-shell
```
## 项目结构
@@ -42,6 +61,7 @@ cmake --install build
├── graphicsdriverapplet.cpp # 主插件类实现
├── gpuindicator.h # GPU指示器类头文件
├── gpuindicator.cpp # GPU指示器类实现
├── debian/ # Debian打包文件
├── CMakeLists.txt # 构建配置
└── README.md # 项目说明
```