From cd82a211701cca548e43e4c3441c818e00e71dc1 Mon Sep 17 00:00:00 2001 From: jokul Date: Sun, 12 Jul 2026 20:11:25 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=89=E8=A3=85=E5=92=8C=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 388fea7..7f32b01 100644 --- a/README.md +++ b/README.md @@ -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 # 项目说明 ```