Skip to content

macOS 更新前缺少磁盘空间预检(Windows portable 已有对等检查) #62

Description

@Wangnov

问题

磁盘空间预检目前是 Windows portable 专属:commands.rsavailable_space() 在非 Windows 直接返回 Ok(None)(src-tauri/src/commands.rs:187),检查点(commands.rs:224,MIN_PORTABLE_FREE_SPACE_BYTES = 1 GiB)因此在 macOS 上被跳过。

影响

macOS 端空间不足时,更新/替换会下载或写入到中途才失败,而不是提前拦截给友好提示。考虑到 macOS 走 Sparkle 增量(体积通常较小),触发概率低,但仍是 macOS / Windows 的能力不对称。

建议

  • 给 macOS 加对等的磁盘空间预检(下载 + 解包 + inside-out 替换的临时空间预算),不足时提前以友好文案拦截。
  • 或显式记录「macOS 增量场景无需预检」的决策,关闭不对称疑虑。

优先级:P3

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions