Skip to content

fix:install scripts - #467

Merged
bigbrother666sh merged 2 commits into
TeamWiseFlow:masterfrom
bigbrother666sh:master
Aug 6, 2026
Merged

fix:install scripts#467
bigbrother666sh merged 2 commits into
TeamWiseFlow:masterfrom
bigbrother666sh:master

Conversation

@bigbrother666sh

Copy link
Copy Markdown
Member

No description provided.

codes-factory-of-bg and others added 2 commits August 6, 2026 17:28
PEP 668 探测分支 + 兜底重试多出一步和报错输出,容易吓到小白。
现代系统(Homebrew/Debian/PEP 668)几乎都不允许 pip install --user,
直接无条件加 --break-system-packages 跨过;--user 限目标目录,不碰
系统 site-packages,安全。

Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
Bug1: PS1 .env/daemon.env 不换行(install.ps1 / install-atomgit.ps1)
- 根因:Where-Object 过滤掉所有行时返回 $null,$null += "line" 静默失败;
  Set-Content -Encoding UTF8 在 PS 5.1 写 BOM,gateway.cmd `call daemon.env`
  解析 BOM 前缀的首行失败
- 修法:封装 Write-EnvFile 辅助函数,用 [System.IO.File]::WriteAllText
  + UTF8Encoding($false) 显式 CRLF 换行、无 BOM;@(...) 强制数组

Bug2: PS1 没创建 ~/.openclaw/bin 技能目录(两个 PS1)
- 根因:PS1 路线没调 apply-addons.sh 的 expose_skill_wrappers,缺这步
- 修法:加 Expose-SkillWrappers 函数,用 .cmd shim 替代 symlink
  (Windows symlink 需管理员权限),在 Run-SetupCrew 之后调用;
  同时把 ~/.openclaw/bin 注入用户 PATH

Bug3: PS1 XIAOBEI_FORCE=1 不生效(两个 PS1)
- 根因:$Force 等在顶层赋值时是 script-scope,但函数内 bare $Force
  读的是 local $null,所以 XIAOBEI_FORCE=1 永远不生效
- 修法:改成 $script:Force 等前缀,所有引用点也改 $script:

Bug4: macOS 第11步 OPENCLAW_HOME warning 噪音(两个 .sh)
- 根因:用户 shell export 了 OPENCLAW_HOME=~/.openclaw,脚本命中
  if 打 3 行 ui_warn;但脚本内部用的是未 export 的内部变量,
  实际安装结构正确——warning 纯噪音
- 修法:3 行 ui_warn 降级为 1 行 ui_info,提示用户清理 shell 环境变量

Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


codes-factory-of-bg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@bigbrother666sh
bigbrother666sh merged commit a63e576 into TeamWiseFlow:master Aug 6, 2026
2 of 3 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