Skip to content

feat: 新增 Magpie 跨平台安装脚本并更新菜单 - #11

Merged
LIghtJUNction merged 4 commits into
mainfrom
feat/magpie-installers
Oct 12, 2026
Merged

LIghtJUNction merged 4 commits into
mainfrom
feat/magpie-installers

Conversation

@LIghtJUNction

Copy link
Copy Markdown
Contributor

变更

  • 新增独立 magpie.sh:完整下载后再运行官方 Unix 安装器,支持 Linux、macOS、Termux;保留上游参数、环境变量和退出码。
  • 新增独立 magpie.ps1:选择 Windows x64/ARM64 桌面或 CLI 资产,校验官方仓库、版本化下载地址与 SHA-256 后安装;更新失败保留旧文件,不自动启动、登录或改写模型配置。
  • Bash / PowerShell 菜单新增第 24 项,Termux 新增第 7 项,旧编号不变。
  • 修复远程菜单仍下载 873bb8d 旧脚本的问题。全部工具统一使用固定提交 86391c6e604bdbbf1231770529c47d508eca7d45,包含已合入的 Codewhale Windows 配置隔离修复;仍支持 LMM_SCRIPTS_REV 显式覆盖。上游软件版本仍动态选择。
  • 增加 Magpie 使用说明、失败路径与菜单测试,只调整原有测试中的菜单预期。

已执行验证

准备及回归检查成功:

  • 修改菜单前:原有 test.py 23 项、test-ai-tools.py 9 项通过。
  • 修改菜单后:以上 32 项仍通过,新增 test-magpie.py 11 项通过,shellcheck *.sh 通过。
  • test-magpie.ps1 20 个用例通过,覆盖首次安装、重复更新、x64/ARM64、模拟进程架构、CLI、自定义目录、错误地址、缺失/错误校验值、下载失败、保留旧文件与清理临时目录。
  • 本地执行 bash -n magpie.sh menu.sh 与 python3 test-magpie.py 通过。

测试发现并修正了 PowerShell 的跨脚本测试数据作用域问题,以及 File.Replace 的 null 字符串参数转换问题。一次性准备工作流完成后已自动移除;不在最终文件树中保留生成框架。

平台与范围

官方入口及 v0.1.1215 资产已核对。Termux 使用上游 Android 原生版本,不回退到 Linux 二进制;该发行版实际提供 Android ARM64。Linux GUI 依赖、Windows GUI 依赖仍按上游要求。

本 PR 的新检查使用临时文件与模拟下载。三平台 PR 检查单独报告;这不是 Windows/macOS GUI 或 Termux 真机验收。没有生产部署、账号登录、API Key 写入或服务启动。主项目将通过单独 PR 更新 packages/lmm-scripts。

Copilot AI balanced review requested due to automatic review settings October 12, 2026 18:05
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

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.

Copy link
Copy Markdown
Contributor Author

三平台验证完成,目标提交为 b453039eba7fe451a1e3ec2445916a47885d5081。

Magpie offline checks 的 Linux、macOS、Windows 三个任务全部成功,Windows PowerShell 5.1 步骤也成功。测试覆盖真实文件写入/替换与模拟下载,不执行真正的 Magpie 二进制。

主项目同步引用 PR:TokenNotIncluded/lmm-api#903 。尚未合并或部署。

@LIghtJUNction
LIghtJUNction merged commit 421e7e3 into main Oct 12, 2026
17 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