Skip to content

Mac 桌面 APP(Electron 壳)— Vincent /goal tg 794 #233

Description

@s2agi

Vincent /goal(tg 794):在手机 APP 之外同时开发 Mac 桌面 APP。

方案:复用 agent-network-app 的 React Native Web 导出,Electron 壳(desktop/)。功能与手机 APP 完全一致(登录 / Agents / Chat / Messages / 设置 / 附件)。

Round 1(已完成)

  • Electron 脚手架:进程内静态服务器(expo 导出绝对路径不兼容 file://)、SPA fallback、路径穿越防护、contextIsolation
  • 已知取舍:webSecurity 关闭(登录页接受任意 hub URL 跨域直连,hub 无 CORS 头)——更广分发前改主进程代理,已在代码注释留痕
  • 服务器逻辑 node 单测通过(index/bundle/SPA fallback/403 traversal);web bundle 本体复用 7-stage 回归(ALL GREEN)
  • Linux 交叉构建出未签名 mac arm64 zip(91MB,electron-builder);本机无 X/libgtk 无法跑 Electron GUI,--smoke 截图验证留待有显示环境
  • 分发:unsigned,安装后右键 → 打开绕过 Gatekeeper;签名公证需 macOS 环境(待办)

Roadmap

  • Vincent 实机验证 round-1 包
  • 应用图标(复用手机 APP launcher icon)
  • 主进程代理替代 webSecurity:false
  • x64 / universal 构建
  • 签名 + 公证(需 Mac)
  • 原生通知 / dock badge(preload bridge 预留)

commit: sleep2agi/agent-network-app@9df670f

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions