Files
MeowOS 7a1c78c5de feat(nyai): 更新规范+导出过滤 — 防降级安装(version点分比较,新版<已装拒装/缺失拒装,先解 staging 再替换) + 导出两层模式(黑名单 find+tar -T 排除 *.pre_*/.bak_*/logs//*.log/.DS_Store 且去 ./ 前缀 / 白名单 export_files 逐项安全校验) + 导出体检(app.json合法+exec存在可执行) + install/upgrade 成功后自清 .bak_<pid> + os.meow.* 签名提示与 2A 验签挂点注释 (agent-180)
nyai e5514929→新值见 fw_content.conf; 宿主 17/17 场景全过(首装/升/同版/降级拒/无版本拒/黑白名单/体检/round-trip); cmd_upgrade 同步加防降级门禁(堵绕过)
出入: 版本严格解析(1.2.3-beta 判不可比拒装, 与定案一致); busybox tar --exclude 未真机验证→用 find|tar -T 兜底
2026-08-31 03:54:38 +08:00

29 lines
820 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# build_nyai.sh — nyai 包管理器交叉编译(mipsel 静态)+ 宿主编译可选。
#
# 目标:R3 Pro II / MeowOS(mipsel-linux-muslsf,静态)。单文件、无外部依赖(POSIX + Linux)。
#
# 用法:
# ./build_nyai.sh # 交叉编译 → patch_v2/meowpkg/nyai(mipsel 静态)
# ./build_nyai.sh host # 宿主编译 → patch_v2/meowpkg/nyai_host
set -e
cd "$(dirname "$0")"
ROOT="$HOME/Project/R3ProII"
CC="$ROOT/.tools/zig-mipsel-cc"
if [ "$1" = "host" ]; then
HOST_CC="${CC_HOST:-cc}"
"$HOST_CC" -Os -Wall -Wextra nyai.c -o nyai_host
echo "== host build =="
ls -la nyai_host
md5sum nyai_host
file nyai_host
exit 0
fi
"$CC" -Os -Wall -Wextra -static nyai.c -o nyai
echo "== nyai (mipsel static) =="
ls -la nyai
md5sum nyai
file nyai