From 3f7a9a59c753eaef1aa9edaebc30a7eda571d4bd Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Fri, 27 Jun 2025 16:03:15 +0800 Subject: [PATCH] fix: make version optional in release workflow and update rpm spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Changed version input from required to optional in GitHub workflow to allow more flexible release process 2. Updated rpm spec file formatting for consistency 3. Added %{?dist} macro to Release field for better compatibility with different distributions fix: 使版本号在发布工作流中可选并更新 rpm 规范 1. 将 GitHub 工作流中的版本输入从必选改为可选,以实现更灵活的发布流程 2. 更新 rpm 规范文件格式以提高一致性 3. 在 Release 字段中添加 %{?dist} 宏以提高与不同发行版的兼容性 --- .github/workflows/call-auto-release.yml | 2 +- rpm/qt5platform-plugins.spec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/call-auto-release.yml b/.github/workflows/call-auto-release.yml index 2908c9b9..3e16f7cc 100644 --- a/.github/workflows/call-auto-release.yml +++ b/.github/workflows/call-auto-release.yml @@ -5,7 +5,7 @@ on: version: description: 'Release version (e.g., 1.0.0)' type: string - required: true + required: false name: description: 'The name of the person to release the version' type: string diff --git a/rpm/qt5platform-plugins.spec b/rpm/qt5platform-plugins.spec index 4f719043..246c12da 100644 --- a/rpm/qt5platform-plugins.spec +++ b/rpm/qt5platform-plugins.spec @@ -4,8 +4,8 @@ %endif Name: dde-qt5platform-plugins -Version: 5.7.17 -Release: 1 +Version: 5.7.17 +Release: 1%{?dist} Summary: Qt platform plugins for DDE License: GPLv3 URL: https://github.com/linuxdeepin/deepin-desktop-schemas