This repository was archived by the owner on May 6, 2026. It is now read-only.
Commit 5368db8
installer(macos): port linux CN-region auto-detection into setup-interactive
macOS was the only platform without automatic China-mirror setup — Linux
sources shared/cn-env.sh in install.sh, and Windows runs Test-IsChinaRegion
per PS script. Port the same AGENTPACK_CN override + iping.cc probe block
into setup-interactive.sh so CN users get npm/pip/uv mirrors without having
to set AGENTPACK_CN=1 by hand. apply_tuna_apt_mirror no-ops on macOS
(no /etc/os-release), so apply_cn_env is safe here as-is.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent d0c69ff commit 5368db8
1 file changed
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
39 | 62 | | |
40 | 63 | | |
41 | 64 | | |
| |||
0 commit comments