From 2ac1cbfb24d5fec5fe318f56462a504ee6fe7200 Mon Sep 17 00:00:00 2001 From: wangjia <809946525@qq.com> Date: Thu, 18 Jun 2026 07:54:48 +0800 Subject: [PATCH] =?UTF-8?q?ci(devops):=20compile-windows=20=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E8=A3=B8=20v=20=E5=89=8D=E7=BC=80=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=EF=BC=8C=E4=BF=AE=20pubspec=20=E9=9D=9E=E6=B3=95?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit build-windows.yml 单独触发时默认 ver=v1.0.4,脚本仅剥 client-v 前缀, 导致 pubspec 写入 version: v1.0.4+1 被 flutter 拒(Invalid version number)。 追加一道 ${VER#v} 剥裸 v;真实发版路径 client-v* 不受影响(无裸 v,空操作)。 Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Y2Wdwo7SmgBJU37cBrkhPK --- scripts/ci/compile-windows.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ci/compile-windows.sh b/scripts/ci/compile-windows.sh index f04f5dc..9a6b213 100755 --- a/scripts/ci/compile-windows.sh +++ b/scripts/ci/compile-windows.sh @@ -7,6 +7,7 @@ set -euo pipefail TAG="$1" VER="${TAG#client-v}" +VER="${VER#v}" # 兼容 build-windows.yml 传裸 v 前缀(如 v1.0.4);pubspec 版本不能带 v echo "==> compile-windows: version=${VER}"