Skip to content

v2.5.0

Latest

Choose a tag to compare

@wzh4869 wzh4869 released this 30 Nov 12:55
· 3 commits to main since this release

AppPorts v2.5.0 Build 115 更新说明(English below)

直链下载 · 赞助

总结

2.5.0 是一次面向日常整理清晰度、外盘应用生态兼容与界面全面焕新的重要更新:外置盘上的 AppPorts 专属目录统一升级为英文规范命名并支持自定义与一键安全归并,已迁移到外盘的 Homebrew 应用现在可以直接用 brew upgrade 原地升级,主界面与设置页也重构为更清爽统一的双层画布和单栏三标签布局。特别感谢社区贡献者 @x22x22(#120)在本版本中发起并共同打磨的外置目录自定义功能。

在外置存储目录管理上,过去写死的中文文件夹名(工具目录、应用数据目录、自定义)在所有语言下都显得不够规范,用户打开硬盘也常常分不清哪些目录能动、哪些不能动。2.5.0 将这三类专属目录统一命名为 AppPorts_Tools、AppPorts_Shortcuts 和 AppPorts_Custom(感谢 @x22x22 在 #120 中的贡献),支持在设置里自由改名,同时做到新旧目录原地兼容、按需生成中英双语 README.md 说明文件,并提供逐项安全归并旧目录的整理入口。

针对通过 Homebrew Cask 安装的应用,2.5.0 新增了外盘直连升级支持:只要是使用非锁定迁移并保留本地启动入口的标准单个 .app 应用,插上外置硬盘后照常执行 brew upgrade,新版就会直接安装到外置盘中,无需先迁回本机,也不要求升级时打开 AppPorts。

界面与交互方面,主导航调整为更顺手的「应用迁移 → 应用数据 → 工具目录 → 目录迁移」,全应用统一采用浅灰/深灰双层画布搭配纯白圆角卡片与 ⌘F 顶部胶囊搜索框;主窗口「设置」彻底重构为「常规与准备」「迁移与存储」「日志与关于」单栏三标签,消除了原本双栏窄卡片造成的挤压换行;同时新增外接鼠标默认悬浮细滚动条、修复了连续点击「筛选 / 显示」弹窗卡死的问题,并彻底解决了切回「应用数据」后漏算全列表大小和标签切换卡顿的体验问题。

升级提示

外置默认目录名已升级为 AppPorts_Tools、AppPorts_Shortcuts、AppPorts_Custom,但老盘上的现有迁移无需手动搬家就能继续使用。
这意味着:你之前留在 工具目录、应用数据目录 或 自定义 下的数据会原地保持「已链接」状态,不会失联,也不会被误报为异常;只有后续新迁移才会写入新目录名。如果你希望把外置盘里的旧目录统一整理到新名称下,可以在「设置 → 迁移与存储 → 外置存储目录」点击**「整理旧目录到新名称…」**,软件会先展示预检清单并逐项安全迁移。

主窗口「设置」改为单栏三标签,部分入口位置有所调整。
这意味着:原来的左右双栏设置现在统一归类到顶部的**「常规与准备」「迁移与存储」「日志与关于」三个标签页;原本位于顶栏的「排除外盘应用索引」**入口也一并收入了「设置 → 常规与准备」中,页面顶部更简洁,切页时也会自动保留你的滚动位置和未保存草稿。

此前已通过非锁定方式迁出的 Homebrew 应用,升级后接上原盘并打开 AppPorts 刷新一次应用列表即可补齐升级登记。
这意味着:你不需要把已经迁出去的应用先还原回来再重新迁移,只要在原外置盘在线时打开 AppPorts 扫描过一次列表,之后就可以直接用 brew upgrade 升级外盘上的应用了。

新功能

外置专属目录规范命名、自定义与安全归并

  • 三类专属目录统一改名并开放自定义(感谢 @x22x22 在 #120 中的贡献):原本写死在代码里的中文目录名统一改为规范的 AppPorts_Tools(工具目录)、AppPorts_Shortcuts(应用数据快捷方式)与 AppPorts_Custom(其他应用数据),并可在「设置 → 迁移与存储 → 外置存储目录」自定义名称或一键恢复默认。
  • 改名后新旧互不干扰:保存新名称后,下一次新迁移或整理会立刻放进新目录;与此同时,以前留在老中文目录或历史名称下的数据依然能被正常识别(包括重新插盘后的「待接回」找回),不会因为改名而失联。
  • 自动生成中英双语 README.md 说明文件:AppPorts 在外置盘创建或使用第一级目录(含 AppPorts_Tools、AppPorts_Shortcuts、AppPorts_Custom、AppPorts.noindex 及已存在的 ~/Library 对应目录)时,会按需写入或升级中英双语 README.md,说明目录用途及如何按 Command + Shift + . 显示隐藏的点开头工具目录;不会在空盘提前创建多余文件夹,也不会覆盖用户自己改写过的文件。
  • 可选的逐项安全归并(「整理旧目录到新名称…」):检测到外置盘上仍有旧名称目录时,设置页会显示待整理的数据目录与快捷方式数量,确认后交由任务中心逐项安全迁入新目录并更新本地软链;若对应应用或命令行工具正在运行则自动跳过,全部搬空后再安全清理只剩系统辅助文件的空旧目录。
  • 明确边界:AppPorts.noindex、macOS 原生英文的 ~/Library 目录(如 Application Support、Caches)以及你在侧边栏「目录迁移」页自选位置迁移的目录均保持原样,不受这次目录改名和归并影响。

支持 Homebrew (brew upgrade) 直接升级外盘应用

  • 外盘应用原地升级:对于通过默认安装路径的 Homebrew 管理的标准单个 .app 应用,使用非锁定迁移并保留本地启动入口后,AppPorts 会为其建立跨盘升级通道;接上原外置盘后照常运行 brew upgrade,新版应用会直接安装到外盘目标目录,本机原有启动入口与 Dock 固定项无需重配即可直接打开新版。
  • 断盘保护与迁回恢复:如果升级时对应外置盘未接上,Homebrew 会直接报错提示,不会误把新版覆写回本机;接回原盘后重新执行同一条命令即可继续升级。将应用「迁移回本地」或移除时,AppPorts 也会自动把 Homebrew 的安装记录恢复回本机默认位置。

单栏三标签设置页与全新双层画布界面

  • 设置页重构为单栏三标签:取消原有的宽屏双栏卡片布局,改为顶部**「常规与准备」「迁移与存储」「日志与关于」**三标签加居中单栏分组列表,配合「左标题说明 + 右操作控件 + 细分隔线」的行式排布,彻底告别窄栏折行拥挤与左右高低不齐;若有权限需要处理,「常规与准备」旁还会保留小圆点提醒。
  • 主导航与顶栏全面统一:侧栏一级导航调整为更符合使用频率的**「应用迁移 → 应用数据 → 工具目录 → 目录迁移」**;主页面顶栏收拢为统一的无重复标题栏与纯白胶囊搜索框(支持 ⌘F 聚焦、按 Esc 清空),并将「排除外盘应用索引」整理进设置页。
  • 双层画布与组件质感统一:全应用统一采用浅灰(#F6F6F8)/ 深黑灰(#1A1B1D)底层画布搭配 12pt 圆角纯白内容卡片与细边框,同步优化了侧栏目标存储头部、磁盘容量条、任务中心嵌入式卡片与「应用数据」目录浏览器样式。
  • 外接鼠标悬浮细滚动条:当系统滚动条保持默认自动模式、插上外接鼠标时,不再在纯白卡片边缘出现常驻的粗灰滚动槽,改为仅在滚动时浮现悬浮细滚动条(若你在系统设置中明确选择了「始终显示」,仍会尊重你的系统设置)。

文档、社区规范与赞助页完善

  • 文档站新增「边界与共识」与内容润色:官网文档侧栏在「简介」后紧接新增简中 / 繁中 / 英文版「边界与共识」页面,重写全部 26 篇文档副标题并简化更新博客中的技术术语。
  • 仓库安全、行为准则与标准 Issue 模板:新增中英双语的《行为准则》(CODE_OF_CONDUCT.md)与《安全政策》(SECURITY.md),并重排规范了 4 类 GitHub Issue 模板(Bug 反馈、应用更新适配申请、功能建议、赞助者信息修改)。
  • 赞助页支持匿名留言混排:文档赞助页新增匿名赞赏留言展示能力,同时保持客户端与仓库首页仅展示实名致谢名单。

修复

  • 修复切回「应用数据」后漏算全列表大小与置顶异常的问题 — 修正跨标签切换时旧状态闭包拦截批量测算的缺陷,拆分「进行中」与「已完成」测算集合,确保每次从其他页面切回「应用数据」都能完整统计各应用数据大小并将已迁移项稳定置顶。
  • 消除页面切换卡顿与空闲时主线程路径解析开销 — 为「应用迁移」列表增加差异隔离,在「应用数据 / 工具目录 / 目录迁移」间切换时保留已打开的子页面状态不重建目录树;空闲无活跃迁移任务时直接短路跳过路径软链解析,设置页日志大小改为后台异步读取。
  • 修复「筛选」与「显示」弹出面板重复点击卡死的问题 — 改用受控的原生 NSPopover 组件接管弹窗关闭与锚点点击时序,连续点击同一按钮或点外侧收起后再点开都能稳定响应。
  • 修复进度浮层在未开始传输字节时显示 0 B 的问题 — 在签名检查或状态准备阶段隐藏零字节进度文案,避免误以为传输卡住。
  • 修复自定义外置目录名与归并过程中的边界安全问题 — 拦截指向外置盘根目录之外或指向自身的异常软链接分类目录;将「目录迁移」页由用户自选基目录的项目明确排除在槽位 README.md 生成与旧目录归并之外,防止破坏自定义外部路径;兼容不区分大小写 APFS 卷避免大小写别名误删;在切换外置盘或保存改名时自动作废过期扫描结果。

已知限制

  • Homebrew 外盘直接升级仅覆盖标准单 .app Cask — 安装包类型(.pkg)、多应用/文件夹结构、或需要动态执行 Ruby 才能解析路径的 Cask 以及处于锁定迁移状态的应用暂不支持自动接管;做文件级整盘备份时,建议排除外置盘根目录下的 .appports-brew 隐藏目录,以免同名克隆盘引起 Homebrew 混淆升级目标。
  • 归并旧外置目录时会自动跳过正在运行的应用或任务 — 若待整理的数据目录关联应用或终端构建任务正在运行,本次归并会自动跳过该项,待退出相关进程后再次整理即可。
  • 文档站内部依赖安全更新 — 本版本同步升级了文档站的 katex、mermaid、compression 等前端构建依赖,不影响 AppPorts 桌面端运行。

AppPorts v2.5.0 Build 115 Release Notes (English)

Direct Download · Sponsor

Summary

2.5.0 is a major release focused on clearer external-drive folder organization, direct Homebrew updates for migrated apps, and a unified visual refresh across the main window and Settings: AppPorts-managed folders on external drives move to standardized English names with optional customization and one-click safe consolidation, Homebrew Cask apps migrated to external storage can now be updated in place with brew upgrade, and both the main workspace and Settings adopt a cleaner two-layer canvas and single-column three-tab layout. Special thanks to community contributor @x22x22 (#120) for initiating and collaborating on customizable external directory naming in this release.

For external storage management, previously hardcoded Chinese folder names (工具目录, 应用数据目录, and 自定义) looked out of place in other interface languages and made it harder to tell which folders on a drive could be modified safely. In 2.5.0, these three dedicated folders are standardized as AppPorts_Tools, AppPorts_Shortcuts, and AppPorts_Custom (with thanks to @x22x22 in #120), can be renamed freely in Settings, remain compatible in place with existing legacy folders, generate bilingual Chinese/English README.md guides on demand, and offer safe item-by-item consolidation from legacy folders.

For apps installed via Homebrew Cask, 2.5.0 adds direct external-drive upgrade support: for standard single-.app casks migrated with Unlocked Migration while keeping their local launcher portal, simply plug in the original external drive and run brew upgrade as usual — the new version installs directly to the external drive without moving the app back to your Mac or keeping AppPorts open during the upgrade.

On the interface side, the primary navigation order is streamlined to App Migration → App Data → Tool Directories → Directory Migration, paired with a unified light/dark two-layer canvas, crisp white rounded content cards, and a ⌘F capsule search bar. Settings in the main window is rebuilt into a single-column layout with three top tabs — General & Readiness, Migration & Storage, and Logs & About — eliminating narrow two-column wrapping. This release also enables floating overlay scrollbars by default when an external mouse is connected, fixes popover lockups when repeatedly clicking Filter or Display, and resolves tab-switching lag as well as skipped full-list size scans when switching back to App Data.

Upgrade Notes

Default external folder names are now AppPorts_Tools, AppPorts_Shortcuts, and AppPorts_Custom, while existing migrations on older drives continue working without any manual move.
What this means for you: items already stored under 工具目录, 应用数据目录, or 自定义 stay Linked in place — they will not break or be flagged as misconfigured; only subsequent new migrations write to the new folder names. If you want to tidy up legacy folders on your drive under the new names, go to Settings → Migration & Storage → External Storage Folders and click Consolidate Legacy Folders… to preview and migrate items safely one by one.

Settings in the main window now uses a single-column three-tab layout, and a few controls have moved.
What this means for you: the previous two-column cards are now organized under General & Readiness, Migration & Storage, and Logs & About at the top of Settings; Exclude External Apps from Search has moved from the top toolbar into Settings → General & Readiness, keeping the page header clean while preserving your scroll position and unsaved drafts across tabs.

Homebrew apps previously moved out with Unlocked Migration just need one app-list refresh in AppPorts with the original drive connected.
What this means for you: you do not need to restore already-migrated Homebrew apps and move them out again — simply open AppPorts once while the original external drive is mounted and refresh the app list to backfill their upgrade registration, after which brew upgrade will update them directly on the external drive.

New Features

Standardized External Storage Folders, Customization, and Safe Consolidation

  • Standardized names and customization for all three dedicated folders (thanks to @x22x22 in #120): previously hardcoded Chinese folder names are unified into AppPorts_Tools (Tool Directories), AppPorts_Shortcuts (App Data Shortcuts), and AppPorts_Custom (Other App Data), and can be renamed or reset anytime under Settings → Migration & Storage → External Storage Folders.
  • New and existing data stay cleanly separated after renaming: once you save a new name, your very next migration or consolidation writes into the new folder immediately; meanwhile, existing data in legacy Chinese folders or previously used names remains recognized (including Awaiting Relink detection after reconnecting a drive), so renaming never orphans existing migrations.
  • Automatic bilingual README.md guides: whenever AppPorts creates or uses a top-level folder on external storage (including AppPorts_Tools, AppPorts_Shortcuts, AppPorts_Custom, AppPorts.noindex, and existing ~/Library counterpart folders), it writes or upgrades a concise Chinese/English README.md explaining what the folder is for and how to reveal dot-prefixed tool folders with Command + Shift + .. It never pre-creates unused folders on an empty drive and never overwrites files you have edited yourself.
  • Optional item-by-item safe consolidation (Consolidate Legacy Folders…): when legacy folders with managed items are detected on your external drive, Settings shows how many data directories and shortcuts can be consolidated, then hands the verified plan to Task Center to move items safely and update local symlinks; any item whose app or CLI tool is currently running is automatically skipped, and empty legacy folders containing only untouched helper files are cleaned up once finished.
  • Clear boundaries: AppPorts.noindex, native English ~/Library folders (such as Application Support and Caches), and user-chosen folders managed in Directory Migration remain untouched by these folder renames and consolidation rules.

Direct Homebrew (brew upgrade) Updates on External Drives

  • In-place upgrades on external storage: for standard single-.app casks managed by Homebrew at its default prefix and moved out via Unlocked Migration with a local portal retained, AppPorts registers a cross-volume upgrade route. With the original external drive connected, running brew upgrade installs the new version straight onto the external drive, and your existing local portal and Dock pins open the updated app without reconfiguration.
  • Disconnected-drive protection and clean restoration: if the target external drive is disconnected during an upgrade, Homebrew stops with an error rather than silently overwriting your Mac's local portal; reconnect the drive and rerun the same command to proceed. When you Move Back to Local or uninstall the app, AppPorts automatically restores Homebrew's installation records to the original local path.

Single-Column Three-Tab Settings and Unified Two-Layer Canvas

  • Redesigned single-column three-tab Settings: replaces the wide-window two-column layout with three top tabs — General & Readiness, Migration & Storage, and Logs & About — above a centered single-column grouped list using clean "label & description on the left, control on the right, hairline divider" rows, eliminating cramped wrapping and uneven column heights. A status dot remains next to General & Readiness whenever permissions need attention.
  • Unified navigation order and top toolbar: sidebar primary navigation is reordered to App Migration → App Data → Tool Directories → Directory Migration; all four main pages share a single clean top toolbar with a white capsule search field (⌘F to focus, Esc to clear), with Exclude External Apps from Search moved into Settings.
  • Consistent two-layer canvas and controls: applies a unified light (#F6F6F8) / dark (#1A1B1D) canvas background behind 12pt-radius pure white cards and subtle borders across the sidebar storage header, capacity bars, embedded Task Center cards, and App Data browser.
  • Floating overlay scrollbars with an external mouse: when macOS scrollbar visibility is left on its default Automatic setting and an external mouse is attached, AppPorts enables process-scoped overlay scrollbars so thick gray tracks no longer cut into rounded white cards (explicitly choosing "Always" in System Settings is still respected).

Documentation, Community Policies, and Sponsor Page Improvements

  • New "Boundaries" page and polished docs: adds simplified Chinese, Traditional Chinese, and English Boundaries & Shared Understanding of AppPorts pages right after the introduction in the docs sidebar, rewrites all 26 page subtitles for clarity, and simplifies technical jargon in the update guide blog post.
  • Code of Conduct, Security Policy, and standardized Issue templates: adds bilingual CODE_OF_CONDUCT.md and SECURITY.md files and standardizes four numbered GitHub Issue templates (Bug Report, App Update Compatibility, Feature Request, and Sponsor Info Update).
  • Anonymous sponsor messages on the docs site: the docs Sponsor page now displays anonymous donation messages alongside named sponsors, while the in-app list and repository README continue listing named sponsors only.

Fixes

  • Fixed skipped full-list size calculation and pinned-migrated sorting when returning to App Data — resolved stale closure state across tab switches and separated in-flight vs. completed sizing sets so switching back to App Data reliably sizes all items and pins migrated entries to the top.
  • Eliminated tab-switching lag and idle main-thread path resolution — isolated App Migration list diffing, kept visited App Data / Tool Directories / Directory Migration subpages alive without rebuilding directory trees, short-circuited symlink resolution when no migration tasks are active, and moved Settings log-size reads off the main thread.
  • Fixed Filter and Display popovers locking up on repeated clicks — replaced SwiftUI's bordered popover interaction with a controlled native NSPopover wrapper so repeated clicks and click-outside dismissals respond consistently.
  • Hid zero-byte text in the progress overlay before byte transfer starts — suppresses 0 B labels during signature checks or preparation stages so progress does not look stuck.
  • Fixed boundary and edge cases in custom external folder naming and consolidation — blocks category symlinks escaping the external drive root or pointing to themselves, excludes user-chosen Directory Migration bases from slot README.md generation and consolidation, handles case-insensitive APFS volumes without misidentifying case aliases, and discards stale inspection plans after drive switches or saved renames.

Known Limitations

  • Direct Homebrew external upgrades apply only to standard single-.app casks — .pkg installers, multi-app or folder artifacts, casks requiring dynamic Ruby evaluation, and apps in locked migration mode are not routed automatically. When making file-level full-disk backups, exclude .appports-brew at the volume root so an identically named clone drive does not confuse Homebrew about which volume was upgraded.
  • Legacy folder consolidation skips items currently in use — if a migrated data folder's associated app or terminal build process is running, consolidation skips that item safely; quit the process and rerun consolidation to finish moving it.
  • Documentation dependency security updates — User_docs updates frontend build/runtime dependencies (katex, mermaid, compression, etc.) with no impact on the desktop app.

What's Changed

  • chore(deps-dev): bump fast-uri from 3.1.8 to 3.1.9 in /User_docs by @dependabot[bot] in #117
  • chore(deps): bump compression and serve in /User_docs by @dependabot[bot] in #118
  • chore(deps): bump katex and mermaid in /User_docs by @dependabot[bot] in #119
  • feat: 支持自定义外置目录名(不影响已有迁移) by @x22x22 in #120

New Contributors

Full Changelog: 2.4.0...2.5.0