From fcd51ddc402715a09f2452fa8db325ac69459f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B8=AD=E9=B8=AD=E3=80=8C=E3=82=AB=E3=83=A2=E3=80=8D?= <89643991+DuckDuckStudio@users.noreply.github.com> Date: Fri, 3 Apr 2026 15:19:31 +0800 Subject: [PATCH 1/2] =?UTF-8?q?ci(release):=20=E8=87=AA=E5=8A=A8=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=20installer.iss=20=E4=B8=AD=E7=9A=84=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 4 ++++ installer.iss | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b844d72..4c6ad97 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,9 +38,13 @@ jobs: version="${version#v}" fi echo "版本号: $version" + sed -i "s/^\([[:space:]]*internal const string VERSION = \)\".*\";/\1\"$version\";/" fcm/Commands/Version.cs cat fcm/Commands/Version.cs + sed -i "s/^\(AppVersion=\).*/\1$version/" installer.iss + cat installer.iss + - name: 发布 run: dotnet publish fcm --configuration Release diff --git a/installer.iss b/installer.iss index 81d3737..42fbb45 100644 --- a/installer.iss +++ b/installer.iss @@ -1,6 +1,6 @@ [Setup] AppName=Fun Content Manager -AppVersion=1.0.0 +AppVersion=develop DefaultDirName={pf}\DuckStudio\FunContentManager VersionInfoCopyright=版权所有 (c) 2026 鸭鸭「カモ」 LicenseFile=LICENSE.txt From 1945023c36650d61333f6da45c4866fe1d7bb14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B8=AD=E9=B8=AD=E3=80=8C=E3=82=AB=E3=83=A2=E3=80=8D?= <89643991+DuckDuckStudio@users.noreply.github.com> Date: Fri, 3 Apr 2026 15:42:48 +0800 Subject: [PATCH 2/2] =?UTF-8?q?ci(release):=20=E4=BF=AE=E6=AD=A3=20inputs?= =?UTF-8?q?=20=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4c6ad97..36623c0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -30,6 +30,8 @@ jobs: - name: 更新版本号 shell: bash + env: + GITHUB_EVENT_INPUTS_VERSION: ${{ github.event.inputs.version }} run: |- if [[ "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then version="${GITHUB_EVENT_INPUTS_VERSION#v}"