Skip to content

v2.4.0

Latest

Choose a tag to compare

@wzh4869 wzh4869 released this 27 Nov 05:18
· 12 commits to main since this release

AppPorts v2.4.0 Build 102 更新说明(English below)

直链下载 · 赞助

总结

2.4.0 是一次围绕外盘应用更新能力、界面启动速度、使用边界引导与数据安全/排障体验的全面升级:应用列表与迁移弹窗可直接识别实际更新组件与守护就绪状态,首页重开可秒恢复上次清单与排序,微信「仅大文件与视频」拆分迁移重新开放,并解决了外盘弹出自占卷、挂载卷还原误报缺权限及日志容量不足等核心痛点。特别感谢社区贡献者 @trah01(#113)与 @Souitou-iop(#114)在本版本中贡献的源码修复与优化。

在外盘应用更新方面,2.4.0 不再只凭框架名称猜测能否更新,而是结合真实安装包与「应用更新守护」的实时就绪状态给出明确建议;适配了 QQ、QQ 音乐外盘更新与旧版 Tauri(2.10.0–2.13.1)跨卷更新,同时在 Electron/ShipIt 下载的新版更新包验签失败时能够自动找回并恢复可验证的旧版本。

界面与日常使用体验上,重新打开 AppPorts 时两栏会立即恢复上次清单、排序方式与只读状态徽章,应用包扫描改用原生目录遍历,由 @Souitou-iop(#114)协助修复了输入区拖窗冲突并优化了窗口缩放时的布局性能;全新 3 步式欢迎页与一次性「关于 AppPorts 的边界与共识」确认页帮助新老用户快速对齐使用边界;同时明确拦截 AppPorts 自身迁出,并在迁出 Clash Verge、Visual Studio Code、Xcode 与 Claude 桌面端前给出风险确认。

稳定性与排障能力也同步补强:优化了点击「弹出外置硬盘」时的锁等待与界面主动退让,修复了已挂载 APFS 卷生成系统隐藏目录后误报缺权限的问题;感谢 @trah01(#113)协助恢复微信「仅大文件与视频(msg/file + msg/video)」迁移并修正还原后的旧介质检查与清理入口;日志系统升级为默认 10 MB 的主/追踪双文件隔离,清空日志前增加二次确认并移入废纸篓,且补齐了 22 种语言的运行时本地化与复数支持。

升级提示

从旧版本升级后首次打开 2.4.0,会先展示一次单屏的「关于 AppPorts 的边界与共识」确认页。
这意味着:你需要勾选确认了解使用边界与数据风险后进入主界面,你的已有系统权限、已迁移应用和记录都不会被重置;之后随时可在「设置」顶部点击**「边界与共识」**重新查阅。

微信「仅大文件与视频(msg/file + msg/video)」已恢复支持新迁移,并补齐了还原后的旧副本查看与清理入口。
这意味着:如果只需要把大文件和视频挪到外盘、把聊天图片(msg/attach)继续留在本机,现在可以直接选用该模式;在拆分还原回本机后,若另一块外盘仍留有旧副本,可以在账号行点击**「查看旧副本」**逐项处理。

原有日志配额低于 10 MB 的老用户,升级后会自动一次性提升至 10 MB。
这意味着:日常扫描日志和关键迁移排障记录不再轻易互相冲掉;如果你此前已手动设为高于 10 MB 或「不限」,原有设置会原样保留,升级后也随时可以在「设置」或菜单栏自行调整大小或更换存放目录。

新功能

应用更新建议、守护自动回退与 Tauri / QQ 适配

  • 更新状态徽章与更谨慎的默认模式选择:应用列表在应用名下方首位展示「更新|可用 / 检测中 / 未知 / 待迁出」徽章,指针短暂悬停 250 毫秒即可查看具体说明;只有当批次中待选应用全部确认具备可用更新路径时,迁移弹窗才会默认推荐并高亮「非锁定迁移」。
  • 接入更多原生更新方式:新增对 QQ 与 QQ 音乐 外盘更新的识别,与已验证的 Sparkle、ShipIt(如 Qoder、OpenCode)、App Store、Araelium、Mozilla、Chrome、JetBrains Toolbox、Zed 等更新链路共同校验,并在重开窗口时按实际安装包身份与版本复用识别结果。
  • 旧版 Tauri 跨卷更新自动适配:针对内置官方 Tauri 2.10.0–2.13.1 更新插件的应用,通过标准本机入口或既有 Dock 固定项启动时会自动分配同卷私有临时目录,解决跨卷移动报错 os error 18;应用升级到 2.13.2 及以上插件版本后会自动交回插件自身更新流程。
  • ShipIt 新版验签失败自动回退:当后台更新守护检测到同一 Electron/ShipIt 更新包连续两次签名校验失败时,会自动等待应用空闲后恢复外盘可验证的旧版本、刷新本机入口并仅清理此次损坏的下载文件;接手成功后主动撤销残留的旧安装请求,同时支持主动关闭守护时保留待恢复状态,并在诊断中记录跳过原因与守护汇总指标。

首页清单秒恢复、扫描提速与界面细节打磨

  • 重开即恢复上次清单与排序:本地与外部两栏分别保存上次完成扫描的清单、排序列与只读状态徽章,重新打开 AppPorts 时无需从空白页等待即可直接浏览(随后在后台静默核对与刷新)。
  • 扫描与缩放更顺滑:首页应用包大小统计改用原生目录遍历,显著缩短大应用包(如 Xcode、PyCharm)重测耗时;应用数据详情合并重叠目录扫描,批量扫描按批渐进显示结果;移除窗口缩放时的逐行锚点状态回写并修复输入区域误触发拖窗的问题,改善调整窗口大小与文本选择流畅度(感谢 @Souitou-iop 在 #114 中的贡献)。
  • 原生侧栏材质与交互修复:采用 macOS 原生侧栏材质并统一各页面亮暗底色,微调表头与底部操作按钮对齐及窄栏长名称显示,并阻止隐藏页面的徽章气泡与分割线悬停穿透到当前页。

欢迎引导重构、边界共识与受限应用确认

  • 新版 3 步欢迎页与边界共识:全新用户会依次通过「核心能力概览 → 边界与共识 → 准备情况」完成上手引导;老用户仅展示一次单屏「边界与共识」确认。
  • 受限应用迁出防护:明确拦截将 AppPorts 自身迁出到外盘(在列表标注「自有」,并在「应用数据」与修复入口中隐藏自身);对 Clash Verge、Visual Studio Code(含 Insiders)、Xcode 及 Claude 桌面端本体迁出前弹出单独提醒,仅在明确点击**「无视风险迁移」**后继续移动,混选批次中取消受限项仍可继续处理其余普通应用。

双文件日志隔离、诊断导出加固与清空防误删

  • 主日志与追踪日志 6:4 隔离:单文件配额升级为 10 MB(支持 1 / 2 / 5 / 10 / 20 / 50 / 100 MB 与「不限」模式),主日志(AppPorts_Log.txt)与高频追踪日志(AppPorts_Trace.txt)按 6:4 独立滚动,支持跨进程安全写入与不限模式下零截断保留。
  • 设置管理、导出与清空保护:「设置」页新增日志当前总大小显示、日志目录展示及「更换位置 / 恢复默认」按钮;导出诊断包默认预填桌面保存路径,支持跨重启保留最近 100 条操作摘要、补齐 smb:// / afp:// 等共享路径脱敏并修正 macOS 26 Tahoe 与 M4 机型识别;点击「清空日志」时统一弹出二次确认框并将日志移入废纸篓(不支持废纸篓的路径回退直接删除),避免误删。

修复

  • 外盘弹出不再频繁误报忙碌或被系统判定为占用外盘 — 点击「弹出外置硬盘」或「重试弹出」时,会平滑等待(最多 5 秒)后台维护与挂载巡检的短暂占锁,预锁被拒不再引发全量重扫;发出弹出请求与系统卸载过程中,主界面、侧栏每 5 秒容量轮询、数据目录与自定义目录的扫描及目录监控均会主动退让,避免系统弹窗提示「AppPorts 正在使用它」,并在重连或卸载取消后自动恢复。
  • 修复已挂载 APFS 卷在还原或统计时误报「缺少访问权限」 — 针对独立挂载卷根下系统自动生成的 .TemporaryItems、.Trashes 与 .Spotlight-V100,写入进程检查与容量统计均自动跳过这些卷级系统产物,消除 Telegram、微信等已挂载容器在还原阶段卡在权限报错或被标为「统计不完整」的问题;其他普通本地子目录权限受阻时会在报错与日志中精准定位具体子路径。
  • 恢复微信「仅大文件与视频(msg/file + msg/video)」迁移与还原后旧副本清理 — 妥善分离跨 msg/file 与 msg/attach 的普通文件硬链接(保留本机聊天附件不变并在外盘写入独立副本);还原旧卷检查改为按卷查询写入进程并仅校验目标 APFS 卷与容器身份(不再被系统或 Xcode 重复挂载的无关映像干扰),同时修复仅剩旧副本时账号状态误显示及缺少「查看旧副本」与重新迁移按钮的问题(感谢 @trah01 在 #113 中的贡献)。
  • 修复基线验证缓存长占锁、后台任务归因与本地化运行时缺陷 — 基线验证缓存改用 SHA-256 摘要键并随活跃迁移裁剪,消除空跑维护占用数秒锁与高内存的问题;将单笔数据任务异常收敛到对应事务,允许复制前启动的应用在退出后继续原迁移;补齐 InfoPlist.xcstrings 22 语系统权限说明、阿拉伯语 RTL 界面翻转、盲文数字格式与全库复数支持,并修复多语错译与繁体中文简体字残留。

已知限制

  • 受限应用与部分独立更新仍依赖应用本身约束 — 通过「无视风险迁移」将 Clash Verge、Visual Studio Code、Xcode 或 Claude 桌面端迁往外盘后,仍可能受厂商自检或本地开发工具链路径要求影响,如遇异常建议迁回本机;QQ、QQ 音乐及各厂商内置更新器若在后续版本更改安装方式,需要重新验证后才会保持「可用」提示。
  • 微信「仅大文件与视频」中的跨目录共享文件会额外占一份外盘空间 — 若同一文件同时存在于 msg/file 与 msg/attach,迁出时会在外盘保留独立副本并维持本机 msg/attach 不变,因此本机聊天附件对应的空间仍留在内置硬盘。
  • 新日志目录会多出追踪与状态辅助文件 — 升级后日志目录除了 AppPorts_Log.txt 外,还会生成 AppPorts_Trace.txt、*.1.txt 滚动备份以及锁/操作摘要辅助文件,诊断导出时会一并打包脱敏后的 AppPorts_Trace.share-safe.txt。

AppPorts v2.4.0 Build 102 Release Notes (English)

Direct Download · Sponsor

Summary

2.4.0 is a comprehensive release focused on external-drive app update reliability, faster launch & UI responsiveness, clear usage boundary guidance, and data-safety/diagnostics improvements: the app lists and migration dialogs now check actual updater components and guardian readiness directly, reopening AppPorts restores your previous app lists and sorting instantly, WeChat "Large files & videos only" split migration is re-enabled, and key pain points around drive ejection locks, mounted-volume permission false positives, and log retention have been resolved. Special thanks to community contributors @trah01 (#113) and @Souitou-iop (#114) for their code fixes and improvements in this release.

For external-drive app updates, 2.4.0 no longer guesses update capability from framework names alone — it evaluates real app bundles alongside live readiness of the Application update guardian. It adds support for QQ and QQ Music external-drive updates as well as legacy Tauri (2.10.0–2.13.1) cross-volume updates, and automatically recovers a verifiable previous version if a new Electron/ShipIt update package fails signature verification.

In everyday usability, reopening AppPorts immediately restores both columns' previous app lists, sort order, and read-only status badges, app bundle sizing switches to native directory traversal, and @Souitou-iop (#114) helped fix text-input window-drag conflicts and improve window-resizing layout performance. A redesigned 3-step Welcome flow and a one-time Boundaries & Shared Understanding of AppPorts screen align expectations for new and returning users; AppPorts also blocks migrating itself out and prompts for explicit confirmation before moving Clash Verge, Visual Studio Code, Xcode, or Claude desktop out of the Mac.

Reliability and diagnostics are strengthened across the board: ejecting an external drive now waits briefly for transient locks and proactively yields UI scans and monitors; mounted APFS volumes no longer trigger false missing-permission errors from system artifacts; thanks to @trah01 (#113), WeChat "Large files & videos only (msg/file + msg/video)" migration is restored along with post-restore old-volume inspection and cleanup controls; logging moves to a 10 MB default split across main and trace files with Trash-backed confirmation before clearing; and runtime localization, RTL layout, Braille number formatting, and plurals are completed across all 22 languages.

Upgrade Notes

Opening 2.4.0 for the first time after upgrading displays a one-time single-screen "Boundaries & Shared Understanding of AppPorts" confirmation.
What this means for you: check the confirmation box acknowledging usage boundaries and data risks to enter the main window — none of your existing system permissions, migrated apps, or records will be reset. You can reopen it anytime from Boundaries at the top of Settings.

WeChat "Large files & videos only (msg/file + msg/video)" is open for new migrations again, with dedicated post-restore old-copy inspection and cleanup.
What this means for you: if you only want large files and videos on your external drive while keeping chat images (msg/attach) on your Mac, you can choose this mode directly again. After restoring back to your Mac, if an older copy remains on another external drive, click View Old Copy on the account row to inspect or clean it up by member.

Users whose log quota was below 10 MB are automatically upgraded once to 10 MB.
What this means for you: routine scan logs and critical migration diagnostics will no longer overwrite each other as quickly. If you already set a limit above 10 MB or Unlimited, your preference is preserved untouched, and you can still adjust the size or move the log folder anytime in Settings or the menu bar.

New Features

App Update Guidance, Automatic Guardian Rollback, and Tauri / QQ Support

  • Update status badges and conservative default choices: the first badge below each app name displays Update | Available / Checking / Unknown / Pending Move Out (hover for 250 ms to preview details). The migration dialog recommends and highlights Unlocked Migration by default only when every eligible app in the batch is confirmed to have an available update path.
  • More native update paths supported: adds external-drive update recognition for QQ and QQ Music, evaluated alongside verified Sparkle, ShipIt (such as Qoder and OpenCode), App Store, Araelium, Mozilla, Chrome, JetBrains Toolbox, and Zed updaters, and reuses bundle-identity/version detection results when reopening the window.
  • Automatic cross-volume support for legacy Tauri updaters: apps embedding the official Tauri 2.10.0–2.13.1 updater plugin automatically receive a same-volume private temporary directory when launched via their standard local portal or existing Dock pin, preventing cross-volume os error 18 failures (and automatically reverting to the plugin's native flow once updated to 2.13.2 or later).
  • Automatic ShipIt rollback on signature verification failure: when the background update guardian observes two consecutive signature-verification failures for the same Electron/ShipIt package, it waits for the app to go idle, restores the verifiable external copy, refreshes the local portal, and cleans up only the damaged download; it also revokes stale ShipIt requests after takeover, preserves pending recovery state when manually disabled, and records skip reasons and summary counts in diagnostics.

Instant Home List Restore, Faster Scans, and UI Polish

  • Restore previous lists and sorting on relaunch: the Local and External panes each save their last completed scan list, sort column, and read-only status badges so you can browse immediately upon reopening AppPorts while background verification refreshes entries in batches.
  • Faster scans and smoother resizing: home-screen app bundle sizing now uses native directory traversal for noticeably faster re-scans on large apps (such as Xcode and PyCharm); App Data details merge overlapping directory scans and stream batch scan results progressively; and removing per-row anchor state feedback during window resizing fixes input-area drag conflicts and improves text selection and resize smoothness (contributed by @Souitou-iop in #114).
  • Native sidebar material and interaction fixes: adopts native macOS sidebar material with unified light/dark backgrounds, refines header and footer button alignment as well as long names in narrow columns, and prevents hidden-page badge popovers and dividers from intercepting hover events on the active page.

Redesigned Welcome Flow, Boundaries, and Restricted-App Confirmation

  • 3-step Welcome guide and Boundaries confirmation: first-time users step through core capabilities overview → Boundaries → Readiness; returning users confirm the single-screen Boundaries & Shared Understanding of AppPorts once.
  • Restricted-app move-out protection: blocks migrating AppPorts itself to an external drive (badged Custom in the list and excluded from App Data and repair entry points); prompts with a dedicated warning before moving Clash Verge, Visual Studio Code (including Insiders), Xcode, or Claude desktop out, proceeding only if you explicitly click Migrate despite risk (cancelling restricted items in a mixed batch still lets ordinary apps proceed).

Dual-File Log Isolation, Export Hardening, and Safer Log Clearing

  • 6:4 split between main and trace logs: upgrades the default quota to 10 MB (selectable across 1 / 2 / 5 / 10 / 20 / 50 / 100 MB and Unlimited), separating the main log (AppPorts_Log.txt) and high-frequency trace log (AppPorts_Trace.txt) in a 6:4 ratio with multi-process safe locking and zero truncation in Unlimited mode.
  • Settings controls, diagnostic export, and Trash-backed clearing: Settings now shows total current log size, log directory path, and Change Location / Reset buttons; diagnostic export pre-fills a Desktop save path, preserves the latest 100 operation summaries across restarts, redacts smb:// / afp:// share URLs, and fixes macOS 26 Tahoe and M4 model detection; clicking Clear Log asks for confirmation and moves log files to the Trash (falling back to direct deletion only where Trash is unsupported).

Fixes

  • External-drive ejection no longer misfires as busy or blocks Finder unmount — clicking Eject External Disk or Retry Eject now waits up to 5 seconds for brief background maintenance or mount-agent locks, and pre-lock refusals no longer cascade into full rescans. Once ejection is requested and during unmount, home scans, 5-second sidebar storage polling, App Data / Custom Dirs scans, and folder monitors proactively yield so macOS no longer warns that AppPorts is using the disk, automatically resuming on reconnect or cancelled ejections.
  • Fixed false missing-permission errors when restoring or sizing mounted APFS volumes — writer checks and size traversal now exclude volume-root system artifacts (.TemporaryItems, .Trashes, and .Spotlight-V100) on mounted APFS volumes, eliminating accessDenied stalls and false incomplete-size warnings on migrated containers such as Telegram and WeChat while reporting exact failing subpaths for ordinary local permission errors.
  • Restored WeChat "Large files & videos only (msg/file + msg/video)" migration and post-restore old-volume cleanup — cleanly separates regular-file hard links shared between msg/file and msg/attach (keeping local chat attachments intact while writing an independent external copy); old-volume cleanup checks writers by volume and validates only the target APFS volume/container identity without being blocked by duplicate system/Xcode disk-image mounts, and fixes account status display plus missing View Old Copy and re-migration actions when only old copies remain (contributed by @trah01 in #113).
  • Fixed baseline-validation lock contention, background task attribution, and runtime localization issues — switched baseline-validation cache keys to SHA-256 digests pruned to active transfers to eliminate multi-second idle maintenance lock holds and excess memory retention; scoped data-task error handling to the matching transaction and allowed apps launched before copy to resume migration after quitting; added 22-language InfoPlist.xcstrings permission prompts, Arabic RTL layout flipping, Braille number formatting, and .stringsdict plurals while fixing cross-language mistranslations and simplified-character leaks in Traditional Chinese.

Known Limitations

  • Restricted apps and independent updaters still depend on each vendor's constraints — moving Clash Verge, Visual Studio Code, Xcode, or Claude desktop to an external drive via Migrate despite risk may still hit vendor self-checks or developer toolchain path requirements; move them back to the Mac if issues occur. Built-in updaters for QQ, QQ Music, and other verified apps may require re-verification if a future update changes their installer layout.
  • Cross-directory shared files in WeChat "Large files & videos only" take extra external space — if a file is hard-linked in both msg/file and msg/attach, migrating creates an independent copy on the external drive while leaving local msg/attach intact, so the local chat attachment copy continues using internal storage.
  • New trace and state helper files appear in the log directory — alongside AppPorts_Log.txt, the log folder now stores AppPorts_Trace.txt, *.1.txt rollover volumes, and lock/operation-summary helper files, and diagnostic exports include the redacted AppPorts_Trace.share-safe.txt.

What's Changed

  • docs: document Homebrew installation in both READMEs by @wzh4869 in #112
  • fix(ui): 修复输入框拖窗和窗口缩放卡顿 by @Souitou-iop in #114
  • fix(wechat): 恢复文件与视频单独拆分迁移和修正还原会因读取其他介质uuid而导致失败的问题 by @trah01 in #113

Full Changelog: 2.3.1...2.4.0