🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(ci): add version prefix to S3 update manifest URLs (#12772)
Innei5391ceda7d60
diff --git a/.github/actions/desktop-publish-s3/action.yml b/.github/actions/desktop-publish-s3/action.ymlindex 184960a279e..2b02ba227a5 100644--- a/.github/actions/desktop-publish-s3/action.yml+++ b/.github/actions/desktop-publish-s3/action.yml@@ -83,32 +83,19 @@ runs:fidone- # 2. 为所有 latest*.yml 的 URL 加版本目录前缀- # electron-builder 始终生成 latest*.yml,不区分 channel+ # 2. 为所有 yml manifest 的 URL 加版本目录前缀+ # merge-mac-files 步骤已生成 {channel}*.yml (如 canary-mac.yml)# 安装包在 s3://$BUCKET/$CHANNEL/$VERSION/ 下,URL 需加 $VERSION/ 前缀echo ""- echo "📋 Adding version prefix to latest*.yml URLs..."- for yml in release/latest*.yml; do+ echo "📋 Adding version prefix to yml manifest URLs..."+ for yml in release/${CHANNEL}*.yml release/latest*.yml; doif [ -f "$yml" ]; then- # url: xxx.dmg -> url: {VERSION}/xxx.dmgsed -i "s|url: |url: $VERSION/|g" "$yml"echo " 📄 Updated $(basename $yml) with URL prefix: $VERSION/"fidone- # 3. 创建 {channel}*.yml (从已修改的 latest*.yml 复制)- # electron-updater 在对应 channel 时会找 {channel}-mac.yml- echo ""- echo "📋 Creating ${CHANNEL}*.yml files from latest*.yml..."- for yml in release/latest*.yml; do- if [ -f "$yml" ]; then- channel_name=$(basename "$yml" | sed "s/latest/$CHANNEL/")- cp "$yml" "release/$channel_name"- echo " 📄 Created $channel_name from $(basename $yml)"- fi- done-- # 4. 创建 renderer manifest (仅 stable 渠道有 renderer tar)+ # 3. 创建 renderer manifest (仅 stable 渠道有 renderer tar)RENDERER_TAR="release/lobehub-renderer.tar.gz"if [ -f "$RENDERER_TAR" ]; thenecho ""@@ -129,7 +116,7 @@ runs:echo " 📄 Created ${CHANNEL}-renderer.yml"fi- # 5. 上传 manifest 到根目录和版本目录+ # 4. 上传 manifest 到根目录和版本目录# 根目录: electron-updater 需要,每次发版覆盖# 版本目录: 作为存档保留echo ""