fix:install scripts - #467
Merged
Merged
Conversation
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>
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.