Skip to content

A full-featured download manager.

fix(engine): bundle aria2 with windows connect failover (#2515)

Dr_rOotbe1625246321
diff --git a/.github/workflows/flatpak.yml b/.github/workflows/flatpak.yml
index d979b69b..a05a7a47 100644
--- a/.github/workflows/flatpak.yml
+++ b/.github/workflows/flatpak.yml
@@ -301,7 +301,7 @@ jobs:
-path "*/native-messaging-hosts/*" \
\) -print -quit)"
output="$("$aria2c" --version)"
- printf "%s\n" "$output" | grep -qF "aria2 version 1.37.0-motrix.23"
+ printf "%s\n" "$output" | grep -qF "aria2 version 1.37.0-motrix.24"
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 87375e34..c35e4ebe 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.23
-- **Source:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.23>
+- **Version:** 1.37.0-motrix.24
+- **Source:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.24>
- **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 5675cc89..9e42cd86 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.23
-- **对应源码:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.23>
+- **版本:** 1.37.0-motrix.24
+- **对应源码:** <https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.24>
- **许可证:** 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 8b7ea1f7..fec5aba6 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.23'
+ printf '%s\n' "$output" | grep -qF 'aria2 version 1.37.0-motrix.24'
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.23
- commit: 7d318fcff6d2f00feddbe6ce81b0c89c808dfc15
+ tag: v1.37.0-motrix.24
+ commit: 5f6f001d1fd7c9f8abd6b3bd15ece18cc3629a3b
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.23]/' \
+ 's/AC_INIT\(\[aria2\],\[[^]]+\]/AC_INIT([aria2],[1.37.0-motrix.24]/' \
configure.ac
- grep -qF 'AC_INIT([aria2],[1.37.0-motrix.23]' configure.ac
+ grep -qF 'AC_INIT([aria2],[1.37.0-motrix.24]' configure.ac
- type: script
dest-filename: autogen.sh
commands:
diff --git a/scripts/engine.lock.json b/scripts/engine.lock.json
index e62207b0..d0097c70 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.23",
- "version": "1.37.0-motrix.23",
+ "tag": "v1.37.0-motrix.24",
+ "version": "1.37.0-motrix.24",
"assets": {
"darwin-arm64": {
- "file": "aria2c-1.37.0-motrix.23-darwin-arm64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.24-darwin-arm64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "e9aec22f19c96aa4f285f6db334926f0688754febc451668be1b93643a2e608a",
- "binarySha256": "265a7bc6c42491d476ae394b4fe9c5af12aefbd0aecaf3463d5eedb326550ff4"
+ "archiveSha256": "ea67b6d91f275358f61fd5880db777854b519e16cb3dc5acf163e20c2a8af018",
+ "binarySha256": "b5beffed4f4b56dd9bf155ca48c6fbca1cc69598917982fad9b5ebba65738047"
},
"darwin-x64": {
- "file": "aria2c-1.37.0-motrix.23-darwin-x64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.24-darwin-x64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "d124737e2f2993c47d15d0364d0f69806ff2fdf1e75484a96388832cb1cf715a",
- "binarySha256": "285e21954cdf2f97442df92a72d9bbf8c1e2b8e0b07e55a3a2a6420823ace808"
+ "archiveSha256": "e31f15ede41c01f817f2b197ba08f2daa544d346ca2b54529c8563e74072bd58",
+ "binarySha256": "d814bd512f8ce95e2e57549fe3d654fbe62c01ba15de52084b12923d3a8b2a49"
},
"win32-arm64": {
- "file": "aria2c-1.37.0-motrix.23-win32-arm64.zip",
+ "file": "aria2c-1.37.0-motrix.24-win32-arm64.zip",
"bin": "aria2c.exe",
- "archiveSha256": "92bd41b06c3fdf6e1e419f4230924b02948305b380af715d24c622f1e5c85173",
- "binarySha256": "0efd7d885fa2845f5c6665510a01049ce50bfbcbe5c8be702fab40bc8242d69c"
+ "archiveSha256": "6cac43afc1e543f50951db49ef4bce9e73614d48ba2bd0aee8dc7d59ba54f29c",
+ "binarySha256": "e883993c910efb8f096155676d950d8715561f15769c895fe8bdaedc0c0d3522"
},
"win32-x64": {
- "file": "aria2c-1.37.0-motrix.23-win32-x64.zip",
+ "file": "aria2c-1.37.0-motrix.24-win32-x64.zip",
"bin": "aria2c.exe",
- "archiveSha256": "107f5784ffd99e10eeb31297b3d71cda7f0e14f940863d27ddd5215644623825",
- "binarySha256": "ab33a0b5249b97ce1da4a8705c27588e74449f684fd92340db5de85dfcbf5ffa"
+ "archiveSha256": "3305bc54c4b03da7d702848a189c8f40c85a23cce9c432e8ecf7c03d7b2dd11e",
+ "binarySha256": "8138d93127fb5885a8100480a260d8383559b598e7e3e6ceedbc1d9f5959c849"
},
"win32-ia32": {
- "file": "aria2c-1.37.0-motrix.23-win32-ia32.zip",
+ "file": "aria2c-1.37.0-motrix.24-win32-ia32.zip",
"bin": "aria2c.exe",
- "archiveSha256": "2efc2064d2a5b91a3308e5e54c24467ee2b6d823fadaef178c55f83cf94e67d0",
- "binarySha256": "9a873918aacc5ed18fa21dc8d5b7c3ea9cb42cc015f34f836418aaaf36308cfc"
+ "archiveSha256": "fb38accf2ce30cb5345ab1f88f3c20d085f9e6e0fc58ea2c4d882f520818cfa5",
+ "binarySha256": "1fcf977f284b3dff436f558b3ade7b8eb26dd9a65cc3dd4bbd55da04b4025811"
},
"linux-x64": {
- "file": "aria2c-1.37.0-motrix.23-linux-x64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.24-linux-x64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "23844251c9712ea10d5add8721f9081f9c9a53d3ff4ce5e664f7e3b27c10c7d4",
- "binarySha256": "1f5c5100220997b186657de142bff0a43032ae7e24fb357d8f6a38bd6d0b3286"
+ "archiveSha256": "f947ee872bfa294d958913503dc470140c247c97cc2e83b75d196e7a6bad155e",
+ "binarySha256": "333a694fdaae0fba86e678e0c6893e909a556c2916ad6c5188bed09a99b1245f"
},
"linux-arm64": {
- "file": "aria2c-1.37.0-motrix.23-linux-arm64.tar.gz",
+ "file": "aria2c-1.37.0-motrix.24-linux-arm64.tar.gz",
"bin": "aria2c",
- "archiveSha256": "8aa829367cc78c69140a55393ff992281c31e42c6e76e5c4853eaa5aa79d1146",
- "binarySha256": "53c2b1879a020c619a780de652a45deac5ad892e994f31204d315c480e1a246c"
+ "archiveSha256": "adb72cbbeb263eac67953923093e16d4c9251fef3a3648aa794b615b605279bb",
+ "binarySha256": "1a7ba9f87a6b68842e3d71cfe917c0fcb729b13274c3572bd7baa74af1a33c24"
},
"linux-arm": {
- "file": "aria2c-1.37.0-motrix.23-linux-armv7l.tar.gz",
+ "file": "aria2c-1.37.0-motrix.24-linux-armv7l.tar.gz",
"bin": "aria2c",
- "archiveSha256": "c6cf08a069658cc730d2c4039e50897d57e2ca02ba8be27367f1a871c2905ee0",
- "binarySha256": "81fd2b866c9550c7b8dd644ae5663c86a6d1d2749ca4dd5e1cd529fe8d010d32"
+ "archiveSha256": "06cf8c47d508bbf90ad1f6249fec7526e4aeca14921245df275925bcc84925bc",
+ "binarySha256": "d14cc259fa1a398928f6e119fa6dc9d54038cc4c7d532cbe981f8cdb3b9f4068"
}
}
}
diff --git a/scripts/verify-flatpak-packaging.mjs b/scripts/verify-flatpak-packaging.mjs
index 7f76144c..58aecd14 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.23 — current Motrix aria2 fork release
- commit: '7d318fcff6d2f00feddbe6ce81b0c89c808dfc15',
+ // v1.37.0-motrix.24 — current Motrix aria2 fork release
+ commit: '5f6f001d1fd7c9f8abd6b3bd15ece18cc3629a3b',
})
const PNPM_SOURCE = Object.freeze({
diff --git a/tests/check-third-party-notices.test.ts b/tests/check-third-party-notices.test.ts
index 46d8440d..ea4cfe5c 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.23')
+ expect(notice).toContain('1.37.0-motrix.24')
expect(notice).toContain(
- 'https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.23'
+ 'https://github.com/motrixapp/aria2/tree/v1.37.0-motrix.24'
)
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 7bb9c6fa..3982a73b 100644
--- a/tests/generate-third-party-notices.test.ts
+++ b/tests/generate-third-party-notices.test.ts
@@ -194,7 +194,7 @@ describe('third-party notice generator', () => {
expect(bundle.packageCount).toBeGreaterThan(100)
expect(inventory).toContain('| @xyflow/react | 12.12.1 |')
- expect(inventory).toContain('| aria2 | 1.37.0-motrix.23 |')
+ expect(inventory).toContain('| aria2 | 1.37.0-motrix.24 |')
expect(inventory).toContain('| motrix.filename-template | 1.1.1 |')
expect(inventory).toContain('Apple San Francisco tray font')
expect(licenses).toContain('GNU GENERAL PUBLIC LICENSE')
@@ -305,7 +305,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.23 |')
+ expect(serverInventory).toContain('| aria2 | 1.37.0-motrix.24 |')
expect(serverInventory).toContain('| motrix.filename-template | 1.1.1 |')
expect(serverInventory).not.toContain('| Electron |')