diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c77adf5..f5371af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,10 +10,10 @@ jobs: debian: name: Debian runs-on: ubuntu-latest - container: docker.io/library/debian:sid + container: docker.io/library/debian:trixie steps: - name: Checkout Source - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Update repository run: apt-get update -y - name: Install the basic dev packages diff --git a/cmake/qtversion.cmake b/cmake/qtversion.cmake index 495799e..1f169ac 100644 --- a/cmake/qtversion.cmake +++ b/cmake/qtversion.cmake @@ -1,7 +1,5 @@ -#find_package(KF6 QUIET COMPONENTS ConfigWidgets) +find_package(KF6 QUIET COMPONENTS ConfigWidgets) -#if(${KF6_FOUND} EQUAL 0) - set(QT_MIN_VERSION "5.15") - set(QT_MAJOR_VERSION 5) - set(KF_MIN_VERSION "5.78") -#endif () +if(${KF6_FOUND} EQUAL 0) + message(FATAL_ERROR "KF6 not found, please install it") +endif () diff --git a/debian/changelog b/debian/changelog index aaa9225..0a9d13d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +lingmo-kwin-plugins-roundedwindow (1.1.0) UNRELEASED; urgency=high + + * Migrate to Qt6 and KWin6 + + -- Elysia Fri, 06 Dec 2024 22:39:17 +0800 + lingmo-kwin-plugins-roundedwindow (1.0.2) UNRELEASED; urgency=low * Merge upstream upgrade. diff --git a/debian/compat b/debian/compat deleted file mode 100644 index b4de394..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -11 diff --git a/debian/control b/debian/control index fe25a03..dd2cb8d 100644 --- a/debian/control +++ b/debian/control @@ -2,35 +2,20 @@ Source: lingmo-kwin-plugins-roundedwindow Section: devel Priority: optional Maintainer: LingmoOS -Build-Depends: cmake, - debhelper (>= 11), - extra-cmake-modules, - kwin-dev, - libxcb-util-dev, - libxcb-util0-dev, - libkf5windowsystem-dev, - libkf5globalaccel-dev, - libkf5config-dev, - libkf5configwidgets-dev, - libkdecorations2-dev, - libkf5coreaddons-dev, - libqt5opengl5-dev, - libqt5x11extras5-dev, - qtbase5-private-dev, - qtbase5-dev, - qtbase5-private-dev, - qtdeclarative5-dev, - qtquickcontrols2-5-dev, - qttools5-dev, - qttools5-dev-tools -Standards-Version: 4.5.0 +Build-Depends: debhelper-compat (= 13), + git, + cmake, + g++, + extra-cmake-modules, + kwin-dev, + qt6-base-private-dev, + qt6-base-dev-tools, + libkf6kcmutils-dev +Standards-Version: 4.5.1 Homepage: https://lingmo.org Package: lingmo-kwin-plugins-roundedwindow Architecture: any -Depends: qml-module-qtquick-controls2, - qml-module-qtquick2, - systemsettings, - ${misc:Depends}, +Depends: ${misc:Depends}, ${shlibs:Depends} Description: LingmoOS KWin Plugins - Rounded Window diff --git a/generate_changelog.sh b/generate_changelog.sh new file mode 100755 index 0000000..3e149e6 --- /dev/null +++ b/generate_changelog.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +# 提示用户输入信息 +read -p "请输入包名: " package_name +read -p "请输入版本号: " version +read -p "请输入状态 (UNRELEASED/STABLE): " status +read -p "请输入紧急程度 (low/medium/high): " urgency +read -p "请输入变更内容 (每条变更内容以 * 开头,多条变更内容以换行分割): " -d $'\n' changes +read -p "请输入维护者姓名和邮箱: " maintainer + +# 自动生成日期 +date=$(LC_ALL=C date +"%a, %d %b %Y %H:%M:%S %z") + +# 输出 Debian changelog 模板 +cat <