From 2f634050696bd7e073233885c2a520cdfe4daacf Mon Sep 17 00:00:00 2001 From: Marcus Sanatan Date: Fri, 28 Nov 2025 00:16:04 -0400 Subject: [PATCH] Remove automatic version bumping from README files and switch to unversioned git URLs Unity doesn't update users who install with a fixed version - Remove sed commands that update version references in README.md and README-zh.md - Update git add command to exclude README files from version bump commits - Change README installation URLs from versioned (#v8.1.0) to unversioned (no tag) - Add documentation showing how to use tagged URLs for users who need fixed versions --- .github/workflows/bump-version.yml | 10 +--------- README-zh.md | 7 ++++++- README.md | 7 ++++++- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index e99be17..cd810c4 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -70,14 +70,6 @@ jobs: echo "Updating Server/pyproject.toml to $NEW_VERSION" sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "Server/pyproject.toml" - echo "Updating README.md version references to v$NEW_VERSION" - sed -i 's|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v[0-9]\+\.[0-9]\+\.[0-9]\+|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v'"$NEW_VERSION"'|g' README.md - sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' README.md - - echo "Updating README-zh.md version references to v$NEW_VERSION" - sed -i 's|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v[0-9]\+\.[0-9]\+\.[0-9]\+|https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v'"$NEW_VERSION"'|g' README-zh.md - sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' README-zh.md - echo "Updating Server/README.md version references to v$NEW_VERSION" sed -i 's|git+https://github.com/CoplayDev/unity-mcp@v[0-9]\+\.[0-9]\+\.[0-9]\+#subdirectory=Server|git+https://github.com/CoplayDev/unity-mcp@v'"$NEW_VERSION"'#subdirectory=Server|g' Server/README.md @@ -89,7 +81,7 @@ jobs: set -euo pipefail git config user.name "GitHub Actions" git config user.email "actions@github.com" - git add MCPForUnity/package.json "Server/pyproject.toml" README.md README-zh.md Server/README.md + git add MCPForUnity/package.json "Server/pyproject.toml" Server/README.md if git diff --cached --quiet; then echo "No version changes to commit." else diff --git a/README-zh.md b/README-zh.md index 009df0a..cea3131 100644 --- a/README-zh.md +++ b/README-zh.md @@ -143,10 +143,15 @@ MCP for Unity 使用两个组件连接您的工具: 3. 点击 `+` -> `Add package from git URL...`。 4. 输入: ``` - https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.1.0 + https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity ``` 5. 点击 `Add`。 +**需要锁定版本?** 使用带标签的 URL(更新时需卸载并重新安装): +``` +https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.0.0 +``` + #### 通过 OpenUPM 安装 1. 安装 [OpenUPM CLI](https://openupm.com/docs/getting-started-cli.html) diff --git a/README.md b/README.md index 8f4a438..0988122 100644 --- a/README.md +++ b/README.md @@ -144,10 +144,15 @@ MCP for Unity connects your tools using two components: 3. Click `+` -> `Add package from git URL...`. 4. Enter: ``` - https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.1.0 + https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity ``` 5. Click `Add`. +**Need a fixed version?** Use a tagged URL instead (updates require uninstalling and re-installing): +``` +https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.0.0 +``` + #### To install via OpenUPM 1. Install the [OpenUPM CLI](https://openupm.com/docs/getting-started-cli.html)