Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -38,9 +40,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

Expand Down
2 changes: 1 addition & 1 deletion installer.iss
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading