A full-featured download manager.
chore(release): prepare 2.1.0 (#2455)
Dr_rOotff482abdfb82
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 9a0fa6d1..bbc838b0 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -936,7 +936,7 @@ jobs:EXPECTED_COMMIT: ${{ github.sha }}EXPECTED_PLATFORM: ${{ matrix.platform }}# Updated only after reviewing the verifier source itself.- VERIFIER_SHA256: eced198abdb8982b9633cf2f2936fe902c01bbf46c91937cbc86ed123b86a959+ VERIFIER_SHA256: 1c600184354601cc550038d813faed4d84dd82fce17f7c0257a5e0e4359fa4f3run: |const crypto = require('node:crypto')const fs = require('node:fs')diff --git a/README.md b/README.mdindex 59d65bd1..4b3f1ff5 100644--- a/README.md+++ b/README.md@@ -19,12 +19,13 @@ The same core powers two ways to run Motrix:- **Desktop app:** Runs on macOS, Windows, and Linux- **Headless server:** Runs without a desktop environment, either directly on Node.js or in Docker, and includes a web UI for NAS devices and home servers-## Motrix 2.0.1+## Motrix 2.1.0-Motrix 2.0.1 improves HTTP resume verification, graphics recovery, memory use,-and download engine reliability, and updates desktop and Server dependencies.-Download [v2.0.1 from GitHub Releases](https://github.com/agalwood/Motrix/releases/tag/v2.0.1)-and read the [full release notes](./docs/release-notes/2.0.1.md).+Motrix 2.1.0 adds BitTorrent file relocation and verification, Windows portable+profiles, editable HTTP retry parameters, and native Linux window controls.+It also improves large-torrent handling and updates Electron to 45.1.0.+Download [v2.1.0 from GitHub Releases](https://github.com/agalwood/Motrix/releases/tag/v2.1.0)+and read the [full release notes](./docs/release-notes/2.1.0.md).Back up your existing Motrix profile and downloads before upgrading. The desktopMigration Assistant imports selected v1 tasks as paused records and preserves@@ -177,14 +178,14 @@ You can also install it from Settings → Integration → Command-line tools in### Headless server with DockerTagged releases publish a multi-architecture Server image to Docker Hub and-GHCR. Stable releases also update `2.0`, `2`, `stable`, and `latest` after runtime+GHCR. Stable releases also update `2.1`, `2`, `stable`, and `latest` after runtimeverification; beta releases publish only their immutable version tag. Theincluded `compose.yaml` keeps Server state separate from downloaded resources:```bashmkdir -p motrix-data downloadssudo chown 1000:1000 motrix-data downloads-export MOTRIX_IMAGE='docker.io/motrixapp/motrix-server:2.0.1'+export MOTRIX_IMAGE='docker.io/motrixapp/motrix-server:2.1.0'export MOTRIX_PUBLIC_URL='http://nas.example.lan:8080'docker compose pull serverdocker compose up -d --waitdiff --git a/README.zh-CN.md b/README.zh-CN.mdindex e0ecd986..ae831cba 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -19,12 +19,13 @@ Motrix 是一款界面简洁、功能丰富的桌面下载管理器,可处理- **桌面应用**:可在 macOS、Windows 和 Linux 上运行;- **Headless server**:无需桌面环境,可直接使用 Node.js 运行或通过 Docker 部署,并提供 Web 界面,适合安装在 NAS 和家庭服务器上。-## Motrix 2.0.1+## Motrix 2.1.0-Motrix 2.0.1 改进 HTTP 续传验证、图形崩溃恢复、内存占用和下载引擎可靠性,-并更新桌面应用及 Server 依赖。-从 GitHub Releases 下载 [v2.0.1](https://github.com/agalwood/Motrix/releases/tag/v2.0.1),-并阅读[完整发布说明](./docs/release-notes/2.0.1.zh-CN.md)。+Motrix 2.1.0 新增 BitTorrent 文件重定位与校验、Windows 便携配置、+HTTP 重试参数编辑和 Linux 原生窗口控件,并改进大型种子处理,+将 Electron 更新至 45.1.0。+从 GitHub Releases 下载 [v2.1.0](https://github.com/agalwood/Motrix/releases/tag/v2.1.0),+并阅读[完整发布说明](./docs/release-notes/2.1.0.zh-CN.md)。升级前请备份现有 Motrix 配置和下载文件。桌面端迁移助手会将选中的 v1 任务导入为暂停记录,并保留原文件;恢复下载需要单独明确操作。@@ -168,13 +169,13 @@ npm install -g @motrix/cli### Headless server(Docker)带 tag 的版本会把多架构 Server 镜像发布到 Docker Hub 和 GHCR。-正式版通过运行验证后还会更新 `2.0`、`2`、`stable` 和 `latest`,beta 仅发布+正式版通过运行验证后还会更新 `2.1`、`2`、`stable` 和 `latest`,beta 仅发布不可变的版本 tag。仓库的 `compose.yaml` 会分别持久化 Server 状态与用户下载资源:```bashmkdir -p motrix-data downloadssudo chown 1000:1000 motrix-data downloads-export MOTRIX_IMAGE='docker.io/motrixapp/motrix-server:2.0.1'+export MOTRIX_IMAGE='docker.io/motrixapp/motrix-server:2.1.0'export MOTRIX_PUBLIC_URL='http://nas.example.lan:8080'docker compose pull serverdocker compose up -d --waitdiff --git a/docs/release-notes/2.1.0.md b/docs/release-notes/2.1.0.mdnew file mode 100644index 00000000..85982656--- /dev/null+++ b/docs/release-notes/2.1.0.md@@ -0,0 +1,88 @@+# Motrix 2.1.0++English | [简体中文](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/release-notes/2.1.0.zh-CN.md)++Motrix 2.1.0 adds tools for managing existing BitTorrent files, an opt-in+Windows portable profile, editable HTTP retry parameters, and native Linux+window controls. It also improves large-torrent handling, migration, and updates.++## Changes since 2.0.1++- Move, locate, and check existing BitTorrent files from the desktop or Web UI.+ Verified files can be adopted without losing the task ID or history, with an+ option to resume seeding. Local v1 torrent pieces are checked before adoption;+ missing or damaged data is reported without starting a repair download.+ Moving an active partial download remains outside this workflow.+- Enable Windows portable mode by creating a `data` folder beside `Motrix.exe`+ in an extracted ZIP. The profile, plugins, working files, and temporary data+ stay beside the application. Application-owned paths are adjusted when the+ folder moves; external destinations require attention before affected work+ resumes. Portable copies use manual ZIP updates and do not install system+ integrations. See the [portable-mode guide](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/portable-mode.md).+- Retry eligible failed HTTP tasks with edited URLs, request headers,+ authentication, proxy settings, and download options. The dialog creates a+ separate download and preserves the failed task, partial file, and checkpoint.+ Existing automatic retries remain available; Alt+Retry opens the parameter+ form for eligible failures.+- Use native Linux window controls that follow Electron-supported desktop+ layouts and themes. Toolbars and popup menus avoid the native control area,+ including left/right layouts and fullscreen transitions.+- Support large, many-file torrent requests within an explicit 64 MiB desktop+ engine RPC budget, and report protocol failures instead of misleading timeouts.+ Server retains its configured request budget. Compact list polling, cached file+ metadata, visible-only detail refreshes, and bounded piece-map rendering reduce+ repeated work for large tasks.+- Migrate legacy tasks containing old proxy or unsupported options with clear+ notices. Verification and continuation use the current download proxy policy;+ HTTP content verification and existing-file protections remain in place.+- Serialize macOS update installation requests and offer manual replacement+ when application and temporary locations are on different volumes or cannot+ be checked safely. Eligible same-volume locations are not restricted to+ `/Applications`.+- Restrict Liquid Glass to the macOS desktop app, and defer empty-state WebGL+ initialization so text and navigation appear first. Fix plugin-operation IDs+ when the Web UI is opened over LAN HTTP, and improve Windows tray icons.+- Update Electron to **45.1.0**, along with compatible UI, form, routing,+ internationalization, and static-server dependencies. `vscode-jsonrpc` remains+ at **9.0.3**. The bundled engine remains **aria2 1.37.0-motrix.21**.++## Downloads and updates++Desktop packages support macOS 13 or later, Windows 10 or later, and Linux,+with native x64 and ARM64 builds. No 32-bit desktop packages are provided.+macOS DMG and ZIP packages are signed and notarized. Windows NSIS installers+and ZIP archives are unsigned and may trigger SmartScreen; download them from+the official GitHub Release.++Stable publication updates both `latest*.yml` and `beta*.yml` feeds to 2.1.0.+Flatpak bundles and their Native Host companions remain separate downloads;+see the [Flatpak guide](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/flatpak.md).+Snap builds first reach `latest/edge`; the same verified amd64 and arm64 revisions+are then promoted through candidate to stable.++Server images use the immutable tags `docker.io/motrixapp/motrix-server:2.1.0`+and `ghcr.io/agalwood/motrix-server:2.1.0`. After public multi-platform runtime+verification, the `2.1`, `2`, `stable`, and `latest` aliases advance to this version.+See the [Docker Server guide](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/docker-server.md).++Back up your profile and download files before upgrading. Users migrating+from Motrix v1 should follow the+[migration guide](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/legacy-migration.md)+and retain their original profile and engine database backups.++## Known limitations++- The parameter-based HTTP retry starts a new download. It does not implement+ authenticated continuation of a retained partial file or establish that the+ Windows DNS/resume failures in [#2426](https://github.com/agalwood/Motrix/issues/2426)+ are resolved.+- Windows portable relocation across real drives still needs broader native+ validation. Follow the portable-mode guide and retain the original folder+ until the moved profile and downloads have been checked.+- Linux window controls depend on Electron-supported desktop behavior.+ Final native GNOME retesting and coverage of KDE Plasma, X11, and WhiteSur+ remain incomplete; no application-level traffic-light style selector is added.+- New BT storage-dialog text is translated into English, Simplified Chinese,+ and Traditional Chinese. Other languages currently use English for these keys.++[Full changelog](https://github.com/agalwood/Motrix/compare/v2.0.1...v2.1.0)diff --git a/docs/release-notes/2.1.0.zh-CN.md b/docs/release-notes/2.1.0.zh-CN.mdnew file mode 100644index 00000000..506a68ff--- /dev/null+++ b/docs/release-notes/2.1.0.zh-CN.md@@ -0,0 +1,73 @@+# Motrix 2.1.0++[English](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/release-notes/2.1.0.md) | 简体中文++Motrix 2.1.0 新增已有 BitTorrent 文件管理、可选的 Windows 便携配置、+HTTP 重试参数编辑和 Linux 原生窗口控件,并改进大型种子处理、迁移和更新。++## 相比 2.0.1 的变化++- 可在桌面端或 Web 界面中移动、定位和校验已有 BitTorrent 文件。通过校验的+ 文件可以被接管,同时保留任务 ID 和历史,并可选择恢复做种。接管前会校验+ 本地 v1 种子分片;缺失或损坏的数据会被明确报告,不会自动启动修复下载。+ 此流程不支持移动正在下载的未完成任务。+- 解压 Windows ZIP 后,在 `Motrix.exe` 同级创建 `data` 文件夹即可启用便携模式。+ 配置、插件、工作文件和临时数据随应用保存。移动应用文件夹后,应用管理的+ 内部路径会随之调整;涉及外部保存位置的任务需要先确认位置再恢复。+ 便携副本使用 ZIP 手动更新,不安装系统集成组件。详见+ [便携模式指南](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/portable-mode.zh-CN.md)。+- 符合条件的失败 HTTP 任务可编辑 URL、请求头、认证、代理和下载选项后重试。+ 对话框会创建独立下载,保留原失败任务、未完成文件和检查点。既有自动重试+ 仍然可用;对符合条件的失败任务使用 Alt+重试可打开参数表单。+- Linux 使用原生窗口控件,跟随 Electron 支持的桌面按钮布局和主题。+ 工具栏和弹出菜单避让原生控件区域,并处理左右布局及全屏切换。+- 桌面端明确使用 64 MiB 的引擎 RPC 请求预算,以支持大型、多文件种子,+ 并直接报告协议错误,避免误导性的超时提示。Server 保留其配置的请求预算。+ 精简任务列表轮询、缓存文件元数据、仅刷新可见详情,并限制分片图渲染规模,+ 减少大型任务的重复处理。+- 迁移含旧代理或不支持参数的旧版任务时给出明确提示。验证与续传使用当前+ 下载代理策略,并保留 HTTP 内容验证和已有文件保护。+- macOS 更新安装请求按序处理;应用与临时目录位于不同卷,或无法安全检查+ 位置时,提供手动替换方式。符合条件的同卷安装位置不限定于 `/Applications`。+- Liquid Glass 仅用于 macOS 桌面端;空状态 WebGL 延后初始化,优先显示文字+ 并允许导航。修复通过局域网 HTTP 打开 Web 界面时插件操作的 ID 生成,+ 并改善 Windows 托盘图标。+- Electron 更新至 **45.1.0**,同时更新兼容的界面、表单、路由、国际化及静态+ 服务器依赖。`vscode-jsonrpc` 保持 **9.0.3**,内置引擎仍为+ **aria2 1.37.0-motrix.21**。++## 下载与更新++桌面安装包支持 macOS 13 及以上、Windows 10 及以上和 Linux,提供原生 x64+与 ARM64 构建,不提供 32 位桌面安装包。macOS DMG 和 ZIP 已签名并公证。+Windows NSIS 安装程序和 ZIP 压缩包未签名,可能触发 SmartScreen 提示,+请从官方 GitHub Release 下载。++正式发布会将 `latest*.yml` 和 `beta*.yml` 更新通道同步至 2.1.0。+Flatpak 应用包与 Native Host 配套程序仍分别提供下载,详见+[Flatpak 指南](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/flatpak.zh-CN.md)。+Snap 构建先发布到 `latest/edge`,再将同一组经过验证的 amd64 和 arm64+revision 依次提升至 candidate 和 stable。++Server 镜像使用不可变的 `docker.io/motrixapp/motrix-server:2.1.0` 和+`ghcr.io/agalwood/motrix-server:2.1.0` 标签。多平台镜像通过公开运行时验证后,+再将 `2.1`、`2`、`stable` 和 `latest` 别名指向该版本。+详见 [Docker Server 指南](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/docker-server.zh-CN.md)。++升级前请备份配置和下载文件。从 Motrix v1 迁移的用户应按照+[迁移指南](https://github.com/agalwood/Motrix/blob/v2.1.0/docs/legacy-migration.zh-CN.md)+操作,并保留原始配置与引擎数据库备份。++## 已知限制++- 编辑参数后的 HTTP 重试会创建新下载,不提供对保留文件的认证断点续传,+ 也不代表已经解决 [#2426](https://github.com/agalwood/Motrix/issues/2426)+ 报告的 Windows DNS 或续传失败。+- Windows 便携目录跨真实磁盘移动仍需更广泛的原生验证。请遵循便携模式指南,+ 在确认移动后的配置和下载文件正常之前,保留原文件夹。+- Linux 窗口控件取决于 Electron 支持的桌面行为。最终 GNOME 原生复测以及+ KDE Plasma、X11、WhiteSur 覆盖尚未完成;本次未增加应用内的交通灯样式选择器。+- 新增 BT 文件管理对话框已提供英文、简体中文和繁体中文,其他语言的这些+ 文案目前使用英文。++[完整变更记录](https://github.com/agalwood/Motrix/compare/v2.0.1...v2.1.0)diff --git a/electron-builder.json b/electron-builder.jsonindex ea93e891..31955d32 100644--- a/electron-builder.json+++ b/electron-builder.json@@ -90,8 +90,8 @@"category": "public.app-category.utilities","type": "distribution","artifactName": "${productName}-${version}-${arch}.${ext}",- "bundleShortVersion": "2.0.1",- "bundleVersion": "2.0.2",+ "bundleShortVersion": "2.1.0",+ "bundleVersion": "2.1.0","minimumSystemVersion": "13.0","hardenedRuntime": true,"gatekeeperAssess": false,diff --git a/electron-builder.signing.json b/electron-builder.signing.jsonindex 25aeab57..3f67534c 100644--- a/electron-builder.signing.json+++ b/electron-builder.signing.json@@ -88,8 +88,8 @@"category": "public.app-category.utilities","type": "distribution","artifactName": "${productName}-${version}-${arch}.${ext}",- "bundleShortVersion": "2.0.1",- "bundleVersion": "2.0.2",+ "bundleShortVersion": "2.1.0",+ "bundleVersion": "2.1.0","minimumSystemVersion": "13.0","hardenedRuntime": true,"gatekeeperAssess": false,diff --git a/flatpak/app.motrix.native.metainfo.xml b/flatpak/app.motrix.native.metainfo.xmlindex 0fc2690b..43da6b9b 100644--- a/flatpak/app.motrix.native.metainfo.xml+++ b/flatpak/app.motrix.native.metainfo.xml@@ -68,6 +68,16 @@</screenshots><releases>+ <release version="2.1.0" date="2026-10-28">+ <description>+ <p>+ Adds BitTorrent file relocation and verification, editable HTTP retry+ parameters, native Linux window controls, and Windows portable profiles.+ Improves large-torrent handling, migration, update installation, and+ interface responsiveness, and updates Electron to 45.1.0.+ </p>+ </description>+ </release><release version="2.0.1" date="2026-10-25"><description><p>diff --git a/package.json b/package.jsonindex d4db0e6b..f27d130e 100644--- a/package.json+++ b/package.json@@ -3,7 +3,7 @@"type": "module","productName": "Motrix","homepage": "https://motrix.app",- "version": "2.0.1",+ "version": "2.1.0","packageManager": "[email protected]+sha512.b3951d6d6ff4a9f13dc7cf56cd28d2b8eb37dbcc9c68e52e1e1191873ea9f82a017287ab50baadc5ccc494f036c67c0e47eb13608c2fa36f47711b61ea128e61","description": "A full-featured download manager","keywords": [],diff --git a/scripts/release-signing-input.mjs b/scripts/release-signing-input.mjsindex 9727f42f..3fa6a571 100644--- a/scripts/release-signing-input.mjs+++ b/scripts/release-signing-input.mjs@@ -41,7 +41,7 @@ const TRUSTED_INPUT_SHA256 = Object.freeze({'scripts/sign-macos.mjs':'98bda5c77dce2a3e5d9c9a2f8211f4d5594d060bf9d2839326db50dc41f8c58b','electron-builder.signing.json':- 'b0b383dd705e3c979eaa5bafc8b7879bbc7570b509c3d924b776039d1b261c76',+ '1d60bad5464d7acd9f18b03dd98a3a900d19ef4d6a5105d44ac456f2fc99f0eb','signing-build-resources/256x256.png':'044d3b64a14aa512ca41469372d1ad630557daaeb2cb4e709d34f2d3c57d4c3b','signing-build-resources/background.tiff':