Skip to content

A full-featured download manager.

fix(engine): bundle aria2 with select dns timer recovery (#2424)

Dr_rOota7a6eb7d0e55
diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml
index 9937201a..51ef34b7 100644
--- a/.github/workflows/flatpak.yml
+++ b/.github/workflows/flatpak.yml
@@ -348,7 +348,7 @@ jobs:
-path "*/native-messaging-hosts/*" \
\) -print -quit)"
output="$("$aria2c" --version)"
- printf "%s\n" "$output" | grep -qF "aria2 version 1.37.0-motrix.20"
+ printf "%s\n" "$output" | grep -qF "aria2 version 1.37.0-motrix.21"
printf "%s\n" "$output" | grep -qF "Async DNS"
printf "%s\n" "$output" | grep -qF "BitTorrent"
printf "%s\n" "$output" | grep -qF "HTTPS"
diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md
index 8306e4c8..6afb82dc 100644
--- a/THIRD_PARTY_NOTICES.md
+++ b/THIRD_PARTY_NOTICES.md
@@ -102,8 +102,8 @@ must obtain permission or replace the font before distributing the build.
Desktop builds bundle an `aria2c` executable pinned by
`scripts/engine.lock.json`:
-- **Version:** 1.37.0-motrix.20
-- **Source:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.20>
+- **Version:** 1.37.0-motrix.21
+- **Source:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.21>
- **License:** GNU General Public License v2.0 or later (`GPL-2.0-or-later`)
- **Full license text:** `THIRD_PARTY_LICENSES/aria2-COPYING`
- **OpenSSL exception / notice:**
diff --git a/THIRD_PARTY_NOTICES.zh-CN.md b/THIRD_PARTY_NOTICES.zh-CN.md
index 5d179a2d..af064f15 100644
--- a/THIRD_PARTY_NOTICES.zh-CN.md
+++ b/THIRD_PARTY_NOTICES.zh-CN.md
@@ -87,8 +87,8 @@ Safari 图标是从 macOS 27.0(26A428)自带的 Safari 27.0 中 `Safari.app/
桌面版随应用打包 `aria2c` 可执行文件,版本由 `scripts/engine.lock.json` 固定:
-- **版本:** 1.37.0-motrix.20
-- **对应源码:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.20>
+- **版本:** 1.37.0-motrix.21
+- **对应源码:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.21>
- **许可证:** GNU General Public License v2.0 or later(`GPL-2.0-or-later`)
- **完整许可证文本:** `THIRD_PARTY_LICENSES/aria2-COPYING`
- **OpenSSL 例外条款 / 声明:**
diff --git a/flatpak/app.motrix.native.yml b/flatpak/app.motrix.native.yml
index af7e5acf..15bcade6 100644
--- a/flatpak/app.motrix.native.yml
+++ b/flatpak/app.motrix.native.yml
@@ -101,7 +101,7 @@ modules:
set -e
output="$(src/aria2c --version)"
printf '%s\n' "$output"
- printf '%s\n' "$output" | grep -qF 'aria2 version 1.37.0-motrix.20'
+ printf '%s\n' "$output" | grep -qF 'aria2 version 1.37.0-motrix.21'
for feature in \
'Async DNS' \
'BitTorrent' \
@@ -123,8 +123,8 @@ modules:
sources:
- type: git
url: https://github.com/motrixapp/aria2.git
- tag: v1.37.0-motrix.20
- commit: da03d2971965f40d9ecbcf2a329f16758db33e97
+ tag: v1.37.0-motrix.21
+ commit: 7ce56e48a8b372fc199b5b88e8d1185cbab49f06
x-checker-data:
type: git
tag-pattern: ^v([\d.]+-motrix\.\d+)$
@@ -136,9 +136,9 @@ modules:
commands:
- |
sed -i -E \
- 's/AC_INIT\(\[aria2\],\[[^]]+\]/AC_INIT([aria2],[1.37.0-motrix.20]/' \
+ 's/AC_INIT\(\[aria2\],\[[^]]+\]/AC_INIT([aria2],[1.37.0-motrix.21]/' \
configure.ac
- grep -qF 'AC_INIT([aria2],[1.37.0-motrix.20]' configure.ac
+ grep -qF 'AC_INIT([aria2],[1.37.0-motrix.21]' configure.ac
- type: script
dest-filename: autogen.sh
commands:
diff --git a/scripts/engine.lock.json b/scripts/engine.lock.json
index fa047ea8..61a7e2fc 100644
--- a/scripts/engine.lock.json
+++ b/scripts/engine.lock.json
@@ -1,56 +1,56 @@
{
"engine": "aria2",
"repo": "motrixapp/aria2",
- "tag": "v1.37.0-motrix.20",
- "version": "1.37.0-motrix.20",
+ "tag": "v1.37.0-motrix.21",
+ "version": "1.37.0-motrix.21",
"assets": {
"darwin-arm64": {
- "file": "aria2c-1.37.0-motrix.20-darwin-arm64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.21-darwin-arm64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "add9cfc30c195cf3fd07362eb6e2f5ce0f2f6383e7d4e491edf762663bd168b0",
- "binarySha256": "65e87b8fde23d67047f3a5c74a57828f720c4b5f93cde492ad54271fbabe9875"
+ "archiveSha256": "dc66702acd0afc6b68a94399e65122af1fae7fa9e1ca2e8522823ddf38caa59f",
+ "binarySha256": "8f1f6b6fef4e37aed4c3291f8e8bf8f90dc26b91b1278e1e08be0cee0de32857"
},
"darwin-x64": {
- "file": "aria2c-1.37.0-motrix.20-darwin-x64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.21-darwin-x64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "44103184d56b86e51622f00722ad22520a55953b31befbf4872b3a12f158dbc2",
- "binarySha256": "05936e14ff5c238a7788a7e815fea192e3d5d305046df65ffa243d4ade82daed"
+ "archiveSha256": "3ce605170a76d54df90b5d18b81e6a935539f1c78015681de5b3d919d93a9244",
+ "binarySha256": "14f02373ec4cba9a4c9304b89d22bb52e61dbbf2ba81fcbdb2cdfb1f40712e3a"
},
"win32-arm64": {
- "file": "aria2c-1.37.0-motrix.20-win32-arm64.zip",
+ "file": "aria2c-1.37.0-motrix.21-win32-arm64.zip",
"bin": "aria2c.exe",
- "archiveSha256": "24d52fc6cba11d61e80bf4ce94f4310ab56e6704c29930b3e49b5b984b18f894",
- "binarySha256": "591aa58c51371f13710dd94af040a6d041ea500e70148e5a14560fabef4365c9"
+ "archiveSha256": "623516b4f9961ad31e336beb4dc488557a31a957a47a3f6063e08d98999449f3",
+ "binarySha256": "dd680702b87acf84d4c8cb2e9c9e66d72a477b113ac6a5c4bec50d2bcea5abfd"
},
"win32-x64": {
- "file": "aria2c-1.37.0-motrix.20-win32-x64.zip",
+ "file": "aria2c-1.37.0-motrix.21-win32-x64.zip",
"bin": "aria2c.exe",
- "archiveSha256": "995b0684531972737035ba51388b1ae8d316b5de72bb769153af54c725104a15",
- "binarySha256": "f9b00b9c1243059ec2a44baf0438d5af3e5b6208c319ef068a6812b19e1661bf"
+ "archiveSha256": "cc3925dba967b6a5fc5c33c5f5bbe81f14ca436f5970b03a5043a11741b5c41c",
+ "binarySha256": "0e692a88146d5eb12ec0c3fe3de2055812b01c5c80147a6e88ecd51985ab5dd6"
},
"win32-ia32": {
- "file": "aria2c-1.37.0-motrix.20-win32-ia32.zip",
+ "file": "aria2c-1.37.0-motrix.21-win32-ia32.zip",
"bin": "aria2c.exe",
- "archiveSha256": "f88cbd091dd8fb1f50ba78afd7445ff7e93a8c794a42d25d142fec5bf1b4c300",
- "binarySha256": "c41bb02cc49171d1aebeae4e5236d87a4701115a003f798da4b6ed52210e1efc"
+ "archiveSha256": "e0d84ca98be8da3e6c095e7084127c866fe7e2df015f2410294da44f13b66d40",
+ "binarySha256": "7ae685fef829e86a8cb6c16c06183aaf5541736075a0d1f79a8d673b0e2f5867"
},
"linux-x64": {
- "file": "aria2c-1.37.0-motrix.20-linux-x64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.21-linux-x64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "92658ec45eb6edf1fcc958c333c1db7e5bbbf23f11d38da52c1510f5fce84b77",
- "binarySha256": "36ffdac301cfad089ca50b5c2ac6a1794d20783f7f58f7209e942df90052a53f"
+ "archiveSha256": "7809f8116959160b04e1dc848b201c966b2f37486d57087a9a2486572e6f8266",
+ "binarySha256": "04516664a8fa85427bb6d649604361135a619860a1ac743b38808f49abc82d4c"
},
"linux-arm64": {
- "file": "aria2c-1.37.0-motrix.20-linux-arm64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.21-linux-arm64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "528367b8f4eaf7a708b2615d9eef60c69c0b9a4645eb06ca81665c8f2f09ceb7",
- "binarySha256": "d11ac0903232baf1b9d2afa7e2ffe2dab593eb14411b35ed3a3b76a6c74213cc"
+ "archiveSha256": "ae60f163d768c4045702c04b576de8c5d422dcd7408ea89d0f971cd996369604",
+ "binarySha256": "ee728fd45cf401b8ac066d90b4edc6e0f1bca44ea71679282b955bb612121eb1"
},
"linux-arm": {
- "file": "aria2c-1.37.0-motrix.20-linux-armv7l.tar.gz",
+ "file": "aria2c-1.37.0-motrix.21-linux-armv7l.tar.gz",
"bin": "aria2c",
- "archiveSha256": "14909afebd70a729b938ad81f7ca008f4dd7d3e9dc55e04b6d71ec0e8b1f8910",
- "binarySha256": "cda8dc145f6a183d973aba33972de5872b4b36edcc38167af8093107792796fd"
+ "archiveSha256": "ab1cf67ed4823908d2daa952969209080df545542ab2d6d6a78a5add6d721c7a",
+ "binarySha256": "c80b2080c2de249e46157649cb4c7db96ffb25bf94cc4d217fe679aa7ecc1291"
}
}
}
diff --git a/scripts/verify-flatpak-packaging.mjs b/scripts/verify-flatpak-packaging.mjs
index e7dea402..b6b62283 100644
--- a/scripts/verify-flatpak-packaging.mjs
+++ b/scripts/verify-flatpak-packaging.mjs
@@ -18,8 +18,8 @@ export const FLATPAK_BUILDER_TOOLS_COMMIT =
// tag resolves to is pinned by hand (and cross-checked against the manifest).
export const ARIA2_SOURCE = Object.freeze({
url: 'https://github.com/motrixapp/aria2.git',
- // v1.37.0-motrix.20 — current Motrix aria2 fork release
- commit: 'da03d2971965f40d9ecbcf2a329f16758db33e97',
+ // v1.37.0-motrix.21 — current Motrix aria2 fork release
+ commit: '7ce56e48a8b372fc199b5b88e8d1185cbab49f06',
})
const PNPM_SOURCE = Object.freeze({
diff --git a/tests/check-third-party-notices.test.ts b/tests/check-third-party-notices.test.ts
index dfc011bc..a68d92ad 100644
--- a/tests/check-third-party-notices.test.ts
+++ b/tests/check-third-party-notices.test.ts
@@ -460,9 +460,9 @@ describe('third-party graph dependency notices', () => {
expect(notice).toContain('SFNS-Regular.ttf')
expect(notice).toContain('https://developer.apple.com/fonts/')
- expect(notice).toContain('1.37.0-motrix.20')
+ expect(notice).toContain('1.37.0-motrix.21')
expect(notice).toContain(
- 'https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.20'
+ 'https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.21'
)
expect(notice).toContain('GPL-2.0-or-later')
expect(notice).toContain('THIRD_PARTY_LICENSES/aria2-COPYING')
diff --git a/tests/generate-third-party-notices.test.ts b/tests/generate-third-party-notices.test.ts
index d113d826..645b32e5 100644
--- a/tests/generate-third-party-notices.test.ts
+++ b/tests/generate-third-party-notices.test.ts
@@ -171,7 +171,7 @@ describe('third-party notice generator', () => {
expect(bundle.packageCount).toBeGreaterThan(100)
expect(inventory).toContain('| @xyflow/react | 12.12.0 |')
- expect(inventory).toContain('| aria2 | 1.37.0-motrix.20 |')
+ expect(inventory).toContain('| aria2 | 1.37.0-motrix.21 |')
expect(inventory).toContain('| motrix.filename-template | 1.1.1 |')
expect(inventory).toContain('Apple San Francisco tray font')
expect(licenses).toContain('GNU GENERAL PUBLIC LICENSE')
@@ -282,7 +282,7 @@ describe('third-party notice generator', () => {
expect(licenses).toContain('GNU GENERAL PUBLIC LICENSE')
}
const serverInventory = server.files['THIRD_PARTY_DEPENDENCIES.md']
- expect(serverInventory).toContain('| aria2 | 1.37.0-motrix.20 |')
+ expect(serverInventory).toContain('| aria2 | 1.37.0-motrix.21 |')
expect(serverInventory).toContain('| motrix.filename-template | 1.1.1 |')
expect(serverInventory).not.toContain('| Electron |')