Files
CherryHQ-cherry-studio/resources
亢奋猫 878861db84 fix(scripts): add fallback to GitCode mirror when GitHub download fails (#13492)
## Summary
- When GitHub is inaccessible, the openclaw installation script now
automatically falls back to GitCode mirror instead of failing with error
code 103
- Added `downloadWithFallback` function that tries GitHub first, then
GitCode mirror
- If `OPENCLAW_USE_MIRROR=1` is set, the order is reversed (GitCode
first, then GitHub)

## Test plan
- [ ] Test installation with GitHub accessible
- [ ] Test installation with GitHub blocked (should fallback to GitCode
mirror)
- [ ] Test installation with `OPENCLAW_USE_MIRROR=1` environment
variable

Signed-off-by: kangfenmao <kangfenmao@qq.com>
2026-03-16 12:09:02 +08:00
..