feat: 添加 deb 打包支持
- 新增 build-deb.sh 一键构建脚本,产物输出到 release/ 目录 - 修复 debian/control 依赖:libdde-shell-dev, qt6-l10n-tools,移除已废弃的 deepin-graphics-driver-manager - 删除 debian/compat(与 debhelper-compat 冲突) - 添加 debian/source/format (3.0 quilt) - 更新 changelog 至 1.0.1-1 - 完善 .gitignore 忽略 debian 构建临时文件
This commit is contained in:
+17
-1
@@ -1,5 +1,21 @@
|
|||||||
|
# CMake 构建产物
|
||||||
build/
|
build/
|
||||||
.cache/
|
build-deb/
|
||||||
|
obj-*/
|
||||||
|
|
||||||
|
# Debian 打包产物
|
||||||
|
release/
|
||||||
|
debian/.debhelper/
|
||||||
|
debian/dde-graphics-driver-applet/
|
||||||
|
debian/debhelper-build-stamp
|
||||||
|
debian/files
|
||||||
|
debian/*.substvars
|
||||||
|
|
||||||
|
# 编译中间文件
|
||||||
*.o
|
*.o
|
||||||
*.so
|
*.so
|
||||||
*.qm
|
*.qm
|
||||||
|
|
||||||
|
# 编辑器/工具
|
||||||
|
.cache/
|
||||||
|
.opencode/
|
||||||
|
|||||||
Executable
+59
@@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# 一键构建 deb 包脚本
|
||||||
|
# 用法: bash build-deb.sh [--install]
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
|
# 从 changelog 解析版本号
|
||||||
|
VERSION=$(dpkg-parsechangelog -l debian/changelog -S Version)
|
||||||
|
PKG_NAME="dde-graphics-driver-applet"
|
||||||
|
ARCH=$(dpkg --print-architecture)
|
||||||
|
DEB_FILE="${PKG_NAME}_${VERSION}_${ARCH}.deb"
|
||||||
|
RELEASE_DIR="${SCRIPT_DIR}/release"
|
||||||
|
|
||||||
|
echo "=== 清理旧构建 ==="
|
||||||
|
rm -rf build-deb obj-x86_64-linux-gnu
|
||||||
|
rm -f ../${PKG_NAME}_*.deb ../${PKG_NAME}_*.changes ../${PKG_NAME}_*.buildinfo
|
||||||
|
|
||||||
|
echo "=== 构建 deb 包 (版本: ${VERSION}) ==="
|
||||||
|
dpkg-buildpackage -us -uc -b
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "=== 收集构建产物到 release/ ==="
|
||||||
|
mkdir -p "${RELEASE_DIR}"
|
||||||
|
# 移动 deb、changes、buildinfo 到 release 目录
|
||||||
|
for f in ../${PKG_NAME}_${VERSION}_${ARCH}.deb \
|
||||||
|
../${PKG_NAME}_${VERSION}_${ARCH}.changes \
|
||||||
|
../${PKG_NAME}_${VERSION}_${ARCH}.buildinfo; do
|
||||||
|
[ -f "$f" ] && mv "$f" "${RELEASE_DIR}/"
|
||||||
|
done
|
||||||
|
# dbgsym 调试包(如果存在)
|
||||||
|
for f in ../${PKG_NAME}-dbgsym_${VERSION}_${ARCH}.deb; do
|
||||||
|
[ -f "$f" ] && mv "$f" "${RELEASE_DIR}/"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "=== 构建完成 ==="
|
||||||
|
DEB_PATH="${RELEASE_DIR}/${DEB_FILE}"
|
||||||
|
echo "包路径: ${DEB_PATH}"
|
||||||
|
dpkg-deb -I "${DEB_PATH}" | grep -E "Package|Version|Architecture|Depends|Description"
|
||||||
|
echo ""
|
||||||
|
echo "release 目录内容:"
|
||||||
|
ls -lh "${RELEASE_DIR}/"
|
||||||
|
|
||||||
|
# 可选:自动安装
|
||||||
|
if [ "$1" = "--install" ]; then
|
||||||
|
echo ""
|
||||||
|
echo "=== 安装 deb 包 ==="
|
||||||
|
sudo apt install -y "${DEB_PATH}"
|
||||||
|
echo "=== 重启任务栏 ==="
|
||||||
|
systemctl --user restart dde-shell@DDE
|
||||||
|
echo "=== 安装完成 ==="
|
||||||
|
else
|
||||||
|
echo ""
|
||||||
|
echo "提示: 运行 'bash build-deb.sh --install' 可自动安装并重启任务栏"
|
||||||
|
echo " 或手动安装: sudo apt install ${DEB_PATH}"
|
||||||
|
fi
|
||||||
Vendored
+8
@@ -1,3 +1,11 @@
|
|||||||
|
dde-graphics-driver-applet (1.0.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* fix: resolve driver name detection using symlink target
|
||||||
|
* feat: show kernel version for open-source GPU drivers (amdgpu, etc.)
|
||||||
|
* feat: add card tooltip with GPU/driver/version info
|
||||||
|
|
||||||
|
-- Jokul <dev@jokul.space> Mon, 13 Jul 2026 21:00:00 +0800
|
||||||
|
|
||||||
dde-graphics-driver-applet (1.0.0-1) unstable; urgency=medium
|
dde-graphics-driver-applet (1.0.0-1) unstable; urgency=medium
|
||||||
|
|
||||||
* Initial release.
|
* Initial release.
|
||||||
|
|||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
13
|
|
||||||
Vendored
+8
-7
@@ -6,16 +6,17 @@ Build-Depends: debhelper-compat (= 13),
|
|||||||
cmake (>= 3.16),
|
cmake (>= 3.16),
|
||||||
g++,
|
g++,
|
||||||
qt6-base-dev,
|
qt6-base-dev,
|
||||||
qt6-tools-dev-tools,
|
qt6-l10n-tools,
|
||||||
libdtk6core-dev,
|
libdde-shell-dev,
|
||||||
libdtk6widget-dev
|
libdtk6core-dev
|
||||||
Standards-Version: 4.6.0
|
Standards-Version: 4.6.0
|
||||||
Homepage: https://github.com/linuxdeepin/dde-shell
|
Homepage: https://github.com/linuxdeepin/dde-shell
|
||||||
|
|
||||||
Package: dde-graphics-driver-applet
|
Package: dde-graphics-driver-applet
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends},
|
Depends: ${shlibs:Depends}, ${misc:Depends},
|
||||||
deepin-graphics-driver-manager
|
dde-shell
|
||||||
Description: DDE Shell Graphics Driver Management Applet
|
Description: DDE Shell Graphics Driver Info Applet
|
||||||
Deepin graphics driver management applet for DDE Shell taskbar.
|
Deepin graphics driver info applet for DDE Shell taskbar.
|
||||||
Provides GPU device detection, driver installation and switching functionality.
|
Detects GPU devices via lspci and displays driver information
|
||||||
|
(driver name and version) in a popup with card-based UI.
|
||||||
|
|||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
||||||
Reference in New Issue
Block a user