Skip to content

Commit 3a71def

Browse files
support aarch64 architecture.
1 parent 9e3e45a commit 3a71def

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ffmpeg_downloader/_linux.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@
1212

1313
# last one gets picked
1414
asset_priority = ["amd64", "i686", "arm64", "armhf", "armel"]
15+
mapping = {
16+
"aarch64": "arm64"
17+
}
1518

1619
# place the matching cpu arch first (need test)
1720
arch = platform.machine()
21+
if arch in mapping:
22+
arch = mapping[arch]
1823
try:
1924
# TODO - adjust as feedback for different architecture is provided
2025
i = asset_priority.index(arch)

0 commit comments

Comments
 (0)