From 1264b4192f6a72388f0b5542e899591575c33098 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Wed, 29 Oct 2025 11:35:38 +0800 Subject: [PATCH] Fix deb building in CI --- .github/workflows/pkg-deb.yml | 4 ++-- pkg/deb/BUILD.md | 2 +- pkg/deb/CI.md | 2 +- pkg/deb/Makefile | 2 +- pkg/deb/README.md | 4 ++-- pkg/deb/deb-installation-test.sh | 2 +- pkg/deb/debian/changelog | 9 ++++++++- pkg/deb/debian/copyright | 10 +++++----- pkg/deb/debian/postinst | 2 +- pkg/deb/debian/prerm | 2 +- pkg/deb/debian/rules | 4 ++-- 11 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pkg-deb.yml b/.github/workflows/pkg-deb.yml index c334fbc..b00533a 100644 --- a/.github/workflows/pkg-deb.yml +++ b/.github/workflows/pkg-deb.yml @@ -4,7 +4,7 @@ # Contributors : 曾奥然 # | # Created On : <2025-06-10> -# Last Modified : <2025-06-16> +# Last Modified : <2025-10-29> # # Build and publish deb packages # --------------------------------------------------------------- @@ -44,7 +44,7 @@ jobs: elif [ "${{ github.event_name }}" = "push" ];then # 从源代码中提取版本号 - version=$(sed -E -n 's/^#define Chsrc_Version +"([0-9]+\.[0-9]+\.[0-9]+).*"/\1/p' ./src/chsrc-main.c) + version=$(sed -E -n 's/^#define Chsrc_Version +"([0-9]+\.[0-9]+\.[0-9]+).*"/\1/p' ./src/framework/version.c) else version="${{ github.event.inputs.version }}" diff --git a/pkg/deb/BUILD.md b/pkg/deb/BUILD.md index 6d53093..0ba582e 100644 --- a/pkg/deb/BUILD.md +++ b/pkg/deb/BUILD.md @@ -4,7 +4,7 @@ ! Doc Type : Markdown ! Doc Name : BUILD.md ! Doc Authors : sanchuanhehe - ! Contributors : Aoran Zeng + ! Contributors : 曾奥然 ! | ! Created On : <2025-06-14> ! Last Modified : <2025-06-16> diff --git a/pkg/deb/CI.md b/pkg/deb/CI.md index 105113d..a25307d 100644 --- a/pkg/deb/CI.md +++ b/pkg/deb/CI.md @@ -4,7 +4,7 @@ ! Doc Type : Markdown ! Doc Name : CI.md ! Doc Authors : sanchuanhehe - ! Contributors : Aoran Zeng + ! Contributors : 曾奥然 ! | ! Created On : <2025-06-14> ! Last Modified : <2025-06-16> diff --git a/pkg/deb/Makefile b/pkg/deb/Makefile index 0b8ef53..17e3818 100755 --- a/pkg/deb/Makefile +++ b/pkg/deb/Makefile @@ -4,7 +4,7 @@ # -------------------------------------------------------------- # Build File : Makefile # File Authors : sanchuanhehe -# Contributors : Aoran Zeng +# Contributors : 曾奥然 # | # Created On : <2025-06-14> # Last Modified : <2025-06-16> diff --git a/pkg/deb/README.md b/pkg/deb/README.md index 2e75032..a65965a 100644 --- a/pkg/deb/README.md +++ b/pkg/deb/README.md @@ -4,8 +4,8 @@ ! Doc Type : Markdown ! Doc Name : README.md ! Doc Authors : sanchuanhehe - ! | Aoran Zeng - ! Contributors : Nil Null + ! | 曾奥然 + ! Contributors : Nil Null ! | ! Created On : <2025-06-14> ! Last Modified : <2025-06-16> diff --git a/pkg/deb/deb-installation-test.sh b/pkg/deb/deb-installation-test.sh index 8072c9b..214612b 100644 --- a/pkg/deb/deb-installation-test.sh +++ b/pkg/deb/deb-installation-test.sh @@ -4,7 +4,7 @@ # -------------------------------------------------------------- # Test File : deb-installation-test.sh # File Authors : sanchuanhehe -# Contributors : Aoran Zeng +# Contributors : 曾奥然 # | # Created On : <2025-06-14> # Last Modified : <2025-06-16> diff --git a/pkg/deb/debian/changelog b/pkg/deb/debian/changelog index f59980c..d2547f0 100644 --- a/pkg/deb/debian/changelog +++ b/pkg/deb/debian/changelog @@ -1,8 +1,15 @@ +chsrc (0.2.3-1) unstable; urgency=medium + + * v0.2.3 已发布 + + -- 曾奥然 Wed, 29 Oct 2025 11:29:05 +0800 + + chsrc (0.1.9-1) unstable; urgency=medium * v0.1.9 已发布 - -- Aoran Zeng Sun, 15 Jun 2025 13:32:50 +0800 + -- 曾奥然 Sun, 15 Jun 2025 13:32:50 +0800 chsrc (0.0.1-1) unstable; urgency=medium diff --git a/pkg/deb/debian/copyright b/pkg/deb/debian/copyright index 17c83ed..975a1c8 100644 --- a/pkg/deb/debian/copyright +++ b/pkg/deb/debian/copyright @@ -1,17 +1,17 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: chsrc -Upstream-Contact: Aoran Zeng +Upstream-Contact: 曾奥然 Source: https://github.com/RubyMetric/chsrc Files: * -Copyright: 2023-2025 Aoran Zeng - 2023-2025 Heng Guo <2085471348@qq.com> +Copyright: 2023-2025 曾奥然 + 2023-2025 郭恒 <2085471348@qq.com> License: GPL-3+ Comment: The authors' names are indicated in each source code file's header. Files: lib/xy.h -Copyright: 2023-2025 Aoran Zeng - 2023-2025 Heng Guo <2085471348@qq.com> +Copyright: 2023-2025 曾奥然 + 2023-2025 郭恒 <2085471348@qq.com> License: MIT Files: pkg/deb/debian/* diff --git a/pkg/deb/debian/postinst b/pkg/deb/debian/postinst index ba58053..39b73a9 100755 --- a/pkg/deb/debian/postinst +++ b/pkg/deb/debian/postinst @@ -5,7 +5,7 @@ # deb File : postinst # File Authors : sanchuanhehe # Contributors : Nil Null -# | +# | # Created On : <2025-06-14> # Last Modified : <2025-06-16> # diff --git a/pkg/deb/debian/prerm b/pkg/deb/debian/prerm index c5e3250..1203a14 100755 --- a/pkg/deb/debian/prerm +++ b/pkg/deb/debian/prerm @@ -5,7 +5,7 @@ # deb File : prerm # File Authors : sanchuanhehe # Contributors : Nil Null -# | +# | # Created On : <2025-06-14> # Last Modified : <2025-06-16> # diff --git a/pkg/deb/debian/rules b/pkg/deb/debian/rules index 88035bf..98ce5cd 100755 --- a/pkg/deb/debian/rules +++ b/pkg/deb/debian/rules @@ -4,8 +4,8 @@ # -------------------------------------------------------------- # Build File : rules # File Authors : sanchuanhehe -# | Aoran Zeng -# Contributors : Nil Null +# | 曾奥然 +# Contributors : Nil Null # | # Created On : <2025-06-14> # Last Modified : <2025-06-20>