From ec004e9328a6c535e0757fa2bb8c6a1b67e0462f Mon Sep 17 00:00:00 2001 From: 777genius Date: Thu, 21 May 2026 20:54:18 +0300 Subject: [PATCH] fix(release): remove legacy download aliases --- .github/workflows/release.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a31c879..f2c3877d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -673,7 +673,7 @@ jobs: if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }} steps: - - name: Upload compatibility aliases for older updater clients + - name: Upload stable download aliases env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -684,7 +684,7 @@ jobs: TMP_DIR="$(mktemp -d)" trap 'rm -rf "$TMP_DIR"' EXIT - declare -A COMPATIBILITY_ALIASES=( + declare -A STABLE_ALIASES=( ["Agent.Teams.AI-arm64.dmg"]="Agent.Teams.AI-${VERSION}-arm64.dmg" ["Agent.Teams.AI-x64.dmg"]="Agent.Teams.AI-${VERSION}-x64.dmg" ["Agent.Teams.AI.Setup.exe"]="Agent.Teams.AI.Setup.${VERSION}.exe" @@ -692,18 +692,11 @@ jobs: ["agent-teams-ai-amd64.deb"]="agent-teams-ai_${VERSION}_amd64.deb" ["agent-teams-ai-x86_64.rpm"]="agent-teams-ai-${VERSION}.x86_64.rpm" ["agent-teams-ai.pacman"]="agent-teams-ai-${VERSION}.pacman" - ["Claude-Agent-Teams-UI-arm64.dmg"]="Agent.Teams.AI-${VERSION}-arm64.dmg" - ["Claude-Agent-Teams-UI-x64.dmg"]="Agent.Teams.AI-${VERSION}-x64.dmg" - ["Claude-Agent-Teams-UI-Setup.exe"]="Agent.Teams.AI.Setup.${VERSION}.exe" - ["Claude-Agent-Teams-UI.AppImage"]="Agent.Teams.AI-${VERSION}.AppImage" - ["Claude-Agent-Teams-UI-amd64.deb"]="agent-teams-ai_${VERSION}_amd64.deb" - ["Claude-Agent-Teams-UI-x86_64.rpm"]="agent-teams-ai-${VERSION}.x86_64.rpm" - ["Claude-Agent-Teams-UI.pacman"]="agent-teams-ai-${VERSION}.pacman" ) - for ALIAS_NAME in "${!COMPATIBILITY_ALIASES[@]}"; do - VERSIONED_NAME="${COMPATIBILITY_ALIASES[$ALIAS_NAME]}" - echo "Uploading compatibility alias: ${ALIAS_NAME} -> ${VERSIONED_NAME}" + for ALIAS_NAME in "${!STABLE_ALIASES[@]}"; do + VERSIONED_NAME="${STABLE_ALIASES[$ALIAS_NAME]}" + echo "Uploading stable alias: ${ALIAS_NAME} -> ${VERSIONED_NAME}" gh release download "${TAG}" \ --repo "$REPO" \ --pattern "${VERSIONED_NAME}" \