{
  "segments": [
    {
      "id": "legacy-v1",
      "type": "legacy",
      "match": {
        "range": ">=1.0.0 <2.0.0"
      },
      "minCompatibleVersion": "1.0.0",
      "description": "Last stable v1.7.x release - required intermediate version for users below v1.7",
      "channelTemplates": {
        "latest": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://releases.cherry-ai.com"
          }
        },
        "rc": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}"
          }
        },
        "beta": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}"
          }
        }
      }
    },
    {
      "id": "gateway-v2",
      "type": "breaking",
      "match": {
        "exact": ["2.0.0"]
      },
      "lockedVersion": "2.0.0",
      "minCompatibleVersion": "1.7.0",
      "description": "Major release v2.0 - required intermediate version for v2.x upgrades",
      "channelTemplates": {
        "latest": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://gitcode.com/CherryHQ/cherry-studio/releases/download/{{tag}}"
          }
        }
      }
    },
    {
      "id": "current-v2",
      "type": "latest",
      "match": {
        "range": ">=2.0.0 <3.0.0",
        "excludeExact": ["2.0.0"]
      },
      "minCompatibleVersion": "2.0.0",
      "description": "Current latest v2.x release",
      "channelTemplates": {
        "latest": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://gitcode.com/CherryHQ/cherry-studio/releases/download/{{tag}}"
          }
        },
        "rc": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://gitcode.com/CherryHQ/cherry-studio/releases/download/{{tag}}"
          }
        },
        "beta": {
          "feedTemplates": {
            "github": "https://github.com/CherryHQ/cherry-studio/releases/download/{{tag}}",
            "gitcode": "https://gitcode.com/CherryHQ/cherry-studio/releases/download/{{tag}}"
          }
        }
      }
    }
  ]
}
