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
main
Marcus Sanatan 2025-11-28 00:16:04 -04:00
parent db2f068fc2
commit 2f63405069
3 changed files with 13 additions and 11 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)