Skip to content

feat(install): admin check, i18n, CN defaults#116

Merged
duguwanglong merged 3 commits intomainfrom
feat/install-admin-i18n-cn-sources
Apr 14, 2026
Merged

feat(install): admin check, i18n, CN defaults#116
duguwanglong merged 3 commits intomainfrom
feat/install-admin-i18n-cn-sources

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

@xiami762 xiami762 commented Apr 14, 2026

Summary

  • Require Windows Administrator in bootstrap (install.ps1, install_zh.ps1) and scripts/install.ps1.
  • install_zh bootstrap: default CN-friendly env (FLOCKS_INSTALL_LANGUAGE, Aliyun PyPI, astral.org.cn uv installers, npmmirror npm, Node.js zh download page).
  • scripts/install.sh / install.ps1: FLOCKS_INSTALL_LANGUAGE drives zh/cn vs English messages, clone hints, and uv install script URL (FLOCKS_UV_INSTALL_SH_URL / FLOCKS_UV_INSTALL_PS1_URL).
  • Bash: additional npm global prefix writability helpers; install_zh scripts aligned with CN defaults.
  • README_zh.md: quick install points to install_zh scripts.
  • Tests: extended test_install_script_sources.py; test_install_script_help.py updated.

xiami762 added 3 commits April 14, 2026 14:31
- Assert Windows administrator in bootstrap and scripts/install PowerShell
- install_zh bootstrap: default FLOCKS_* mirrors (uv astral.org.cn, Aliyun PyPI, npmmirror)
- install_zh.sh: export language and uv install URLs in configure_cn_environment
- scripts/install.sh/ps1: FLOCKS_INSTALL_LANGUAGE drives zh/cn messages and clone hints
- Configurable uv install script URL; bash npm global prefix checks
- README_zh: point quick install to install_zh scripts; extend install script tests
- uv.lock: dependency sync

Made-with: Cursor
- PowerShell: Start-Process npx so download progress streams; resolve exe via recursive search
- Bash: resolve_chrome_for_testing_path_from_dir with globstar; stream npx to stderr
- Remove redundant TUI skip messages when --with-tui is not used
- Update browser installer and process-cleanup contract tests

Made-with: Cursor
- Warn and continue when npx is missing, CfT install fails, or exe is unresolved
- Reuse browser under ~/.flocks/browser before running npx install
- Bash: add warn() for localized warnings; install_chrome_for_testing returns non-zero on skip
- Update browser runtime contract tests

Made-with: Cursor
@duguwanglong duguwanglong merged commit 6e0e897 into main Apr 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants