Skip to content

Commit

Permalink
build: Migrate to Qt6 and KWin6, update dependencies (#5)
Browse files Browse the repository at this point in the history
* build: Migrate to Qt6 and KWin6, update dependencies

* build(debian): update container image and checkout action
  • Loading branch information
elysia-best authored Dec 6, 2024
1 parent 73252b3 commit 2211212
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 4 additions & 6 deletions cmake/qtversion.cmake
Original file line number Diff line number Diff line change
@@ -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 ()
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
lingmo-kwin-plugins-roundedwindow (1.1.0) UNRELEASED; urgency=high

* Migrate to Qt6 and KWin6

-- Elysia <[email protected]> Fri, 06 Dec 2024 22:39:17 +0800

lingmo-kwin-plugins-roundedwindow (1.0.2) UNRELEASED; urgency=low

* Merge upstream upgrade.
Expand Down
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

37 changes: 11 additions & 26 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,20 @@ Source: lingmo-kwin-plugins-roundedwindow
Section: devel
Priority: optional
Maintainer: LingmoOS <[email protected]>
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
21 changes: 21 additions & 0 deletions generate_changelog.sh
Original file line number Diff line number Diff line change
@@ -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 <<EOF
$package_name ($version) $status; urgency=$urgency
$changes
-- $maintainer $date
EOF

0 comments on commit 2211212

Please sign in to comment.