Repository navigation
feat: 新增 Magpie 跨平台安装脚本并更新菜单 - #11
Merged
Merged
Conversation
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.
变更
magpie.sh:完整下载后再运行官方 Unix 安装器,支持 Linux、macOS、Termux;保留上游参数、环境变量和退出码。magpie.ps1:选择 Windows x64/ARM64 桌面或 CLI 资产,校验官方仓库、版本化下载地址与 SHA-256 后安装;更新失败保留旧文件,不自动启动、登录或改写模型配置。873bb8d旧脚本的问题。全部工具统一使用固定提交86391c6e604bdbbf1231770529c47d508eca7d45,包含已合入的 Codewhale Windows 配置隔离修复;仍支持LMM_SCRIPTS_REV显式覆盖。上游软件版本仍动态选择。已执行验证
准备及回归检查成功:
test.py23 项、test-ai-tools.py9 项通过。test-magpie.py11 项通过,shellcheck *.sh通过。test-magpie.ps120 个用例通过,覆盖首次安装、重复更新、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。