Skip to content

Fix macOS CLI terminal, add app icon, bump to 1.0.6#1

Open
backspace135 wants to merge 9 commits into
mainfrom
fix/macos-cli-terminal-and-app-icon
Open

Fix macOS CLI terminal, add app icon, bump to 1.0.6#1
backspace135 wants to merge 9 commits into
mainfrom
fix/macos-cli-terminal-and-app-icon

Conversation

@backspace135

Copy link
Copy Markdown
Owner

摘要

修复 macOS 上「CLI 终端」无法使用的问题,为 macOS .app 补上图标,并把版本统一 bump 到 1.0.6

变更

CLI 终端(macOS)

  • CliLauncher 之前硬编码 cmd.exe + .bat,在 macOS 上抛异常且被静默吞掉,点击无反应。现在按平台分支:macOS 生成等价的 .command shell 脚本并用 Terminal.app 打开,编号菜单(设备信息 / adb shell / logcat / 重启 / 关机 / 原生命令行)与 Windows 一致。
  • 启动失败改为 Notifier toast 提示,不再静默。
  • 新增 cli.unsupported / cli.launchFailed 本地化字符串(中英 ResX 同步)。

macOS App 图标

  • 打包脚本用 sips + iconutilatv-icon.png 生成 AppIcon.icns,并写入 Info.plistCFBundleIconFile.app 现在在 Dock/Finder 显示图标。

版本 1.0.6

  • 同步 AppInfo、App/Mini/Mini.Mac 程序集元数据、app.manifest、打包脚本、wix、docs、README。

文档

  • 两个中文 README 反映 macOS 支持(Platform badge、跨平台描述、macOS 使用说明小节)。

验证

  • dotnet build AndroidTreeView.sln -p:EnableWindowsTargeting=true 通过(0 警告 0 错误)。
  • 全量测试 244 通过;1 个预先存在的失败(NekoIndexUpdateServiceTests 的 URL 断言,本地环境相关,非本 PR 引入)。
  • macOS 端到端验证:.command 脚本渲染正确(ANSI 颜色 / 中文 / PATH / SERIAL),open -a Terminal.app 成功拉起并执行。
  • 已构建 osx-arm64 App/Mini ZIP 并发布到 Release v1.0.6。

备注

本 PR 也包含会话前工作区中已存在的无关改动(SkeletonBlock.*MainWindowViewModel.cs、新增 CLAUDE.md),按要求一并提交。

backspace135 and others added 9 commits July 9, 2026 15:43
- CliLauncher: branch by platform. macOS now writes an equivalent .command
  shell script with the same numbered menu and opens it in Terminal.app;
  previously it hardcoded cmd.exe + .bat and failed silently on macOS.
- Surface launch failures via Notifier (toast) instead of only logging.
- Add cli.unsupported / cli.launchFailed strings to both ResX files.
- Packaging: generate AppIcon.icns from atv-icon.png (sips + iconutil) and
  set CFBundleIconFile so the macOS .app shows an icon in Dock/Finder.
Sync version across AppInfo, App/Mini/Mini.Mac project metadata,
app.manifest, packaging scripts, wix, docs, and README.
- Platform badge Windows -> Windows + macOS
- Describe as cross-platform (Windows + macOS Apple Silicon), not Windows-only
- Generalize the usage section and add a macOS subsection (Terminal.app CLI,
  drag to /Applications, Gatekeeper). English README already covered this.
分步向导:上传刷机包→提取 boot.img→手机端官方 Magisk 修补→进 bootloader→flash boot,写操作前强制确认+自动备份原始 boot。双平台(Windows/macOS)。
- 构建时打包固定版 Magisk APK(SHA-256 校验),运行时 adb install
- 修补改用已装 App 自带的 boot_patch.sh + native 组件,不再桌面侧拆各 ABI 二进制
- 同步 §1.1/§2/§3/§4/§5.1/§6.2/§7/§8/§10/§11/§13
- 保留第 4 步实机验证警告(已装 App 脚本能否被 adb shell 直接调到仍待验证)
…con' into fix/macos-cli-terminal-and-app-icon

# Conflicts:
#	CLAUDE.md
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.

1 participant