Skip to content

Commit 2f63405

Browse files
committed
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
1 parent db2f068 commit 2f63405

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/bump-version.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,6 @@ jobs:
7070
echo "Updating Server/pyproject.toml to $NEW_VERSION"
7171
sed -i '0,/^version = ".*"/s//version = "'"$NEW_VERSION"'"/' "Server/pyproject.toml"
7272
73-
echo "Updating README.md version references to v$NEW_VERSION"
74-
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
75-
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
76-
77-
echo "Updating README-zh.md version references to v$NEW_VERSION"
78-
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
79-
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
80-
8173
echo "Updating Server/README.md version references to v$NEW_VERSION"
8274
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
8375
@@ -89,7 +81,7 @@ jobs:
8981
set -euo pipefail
9082
git config user.name "GitHub Actions"
9183
git config user.email "actions@github.com"
92-
git add MCPForUnity/package.json "Server/pyproject.toml" README.md README-zh.md Server/README.md
84+
git add MCPForUnity/package.json "Server/pyproject.toml" Server/README.md
9385
if git diff --cached --quiet; then
9486
echo "No version changes to commit."
9587
else

README-zh.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,15 @@ MCP for Unity 使用两个组件连接您的工具:
143143
3. 点击 `+` -> `Add package from git URL...`
144144
4. 输入:
145145
```
146-
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.1.0
146+
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity
147147
```
148148
5. 点击 `Add`
149149

150+
**需要锁定版本?** 使用带标签的 URL(更新时需卸载并重新安装):
151+
```
152+
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.0.0
153+
```
154+
150155
#### 通过 OpenUPM 安装
151156
152157
1. 安装 [OpenUPM CLI](https://openupm.com/docs/getting-started-cli.html)

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,15 @@ MCP for Unity connects your tools using two components:
144144
3. Click `+` -> `Add package from git URL...`.
145145
4. Enter:
146146
```
147-
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.1.0
147+
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity
148148
```
149149
5. Click `Add`.
150150

151+
**Need a fixed version?** Use a tagged URL instead (updates require uninstalling and re-installing):
152+
```
153+
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#v8.0.0
154+
```
155+
151156
#### To install via OpenUPM
152157

153158
1. Install the [OpenUPM CLI](https://openupm.com/docs/getting-started-cli.html)

0 commit comments

Comments
 (0)