Skip to content

fix: Pi 直接调用官方安装脚本,不再用 npm 替代 - #4

Merged
LIghtJUNction merged 4 commits into
mainfrom
fix/pi-official-installer
Sep 21, 2026
Merged

LIghtJUNction merged 4 commits into
mainfrom
fix/pi-official-installer

Conversation

@LIghtJUNction

@LIghtJUNction LIghtJUNction commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

修正

Pi 官网 https://pi.dev/ 提供 install.sh / install.ps1。之前只用了 npm 示例,遗漏了官方安装器。

pi.sh / pi.ps1 现在完整获取官网脚本后原样执行,不复制或改写其 Node、权限、安装位置、PATH、Windows Git Bash 和交互处理。仍是平铺结构,没有恢复生成器、私有运行时或网络加速。两个入口分别 12 / 11 行,包含 Termux 原生依赖准备和 LMM 插件衔接。

后续插件使用官方选定的安装路径和同一执行环境;取消、卸载或失败不继续安装插件。两个菜单已指向新入口提交 b7b066e5ca0e8a16b13c37a308419bc475cd459b。

DSH 当前官网/README 使用 npx,旧 scripts/install.sh 已不在当前树中,因此没有冒用归档脚本;其现有 npm/pnpm 安装不变。Codex / Claude 已直接使用官方安装脚本,不重写。

验证

已验证 HEAD:132f9cb57e79b1605f300180c98ba6d6a62eeb3b
CI:https://github.com/TokenNotIncluded/lmm-scripts/actions/runs/35568153173

5 个任务全部通过:Ubuntu、macOS、Windows 的命令与真实 CLI 安装检查,以及 Debian 12 / Alpine 3.22 的 Codex、Claude 官方安装器检查。21 项 Python 测试、16 项 PowerShell 命令检查(含 Windows PowerShell 5.1)、ShellCheck 通过。覆盖官方失败/取消、安装路径不在 PATH、版本探测和插件错误、Termux 依赖准备、不执行部分下载内容。

实际 Pi 官方安装器装上的是 0.86.1。现有 LMM alpha 只验证过 0.85.1,自动插件安装会明确跳过;这次没有把插件适配到 0.86.1,也没有通过 npm 降级宿主。 官方安装器的真实调用已验证,不能把它说成最新 Pi + LMM 插件集成已验证。

Termux 仅模拟测试,未真机验证。没有执行账号登录、模型调用或桌面 GUI 测试。不部署网站,不修改上层子模块指针。

Keep upstream dependency, permission, PATH and cancellation handling intact.
Run the LMM plugin follow-up only for its tested host, without downgrading Pi.
Retain native Termux dependencies and add installer-delegation regressions.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Copilot AI lite review requested due to automatic review settings September 21, 2026 06:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-21T06:20:54.729986Z 751ac3c PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@LIghtJUNction
LIghtJUNction merged commit 4dfbdc7 into main Sep 21, 2026
10 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