{"id":35029265,"url":"https://github.com/abcfy2/aria2-static-build","last_synced_at":"2026-05-28T04:01:06.996Z","repository":{"id":37671876,"uuid":"310194377","full_name":"abcfy2/aria2-static-build","owner":"abcfy2","description":"aria2 static build, support cross compile","archived":false,"fork":false,"pushed_at":"2026-05-07T11:22:24.000Z","size":116,"stargazers_count":90,"open_issues_count":1,"forks_count":24,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-05-07T11:37:28.955Z","etag":null,"topics":["aria2"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abcfy2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-05T04:57:32.000Z","updated_at":"2026-05-07T11:22:11.000Z","dependencies_parsed_at":"2025-11-30T16:02:47.056Z","dependency_job_id":null,"html_url":"https://github.com/abcfy2/aria2-static-build","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/abcfy2/aria2-static-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abcfy2%2Faria2-static-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abcfy2%2Faria2-static-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abcfy2%2Faria2-static-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abcfy2%2Faria2-static-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abcfy2","download_url":"https://codeload.github.com/abcfy2/aria2-static-build/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abcfy2%2Faria2-static-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33593400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aria2"],"created_at":"2025-12-27T06:53:38.340Z","updated_at":"2026-05-28T04:01:06.982Z","avatar_url":"https://github.com/abcfy2.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aria2-static-build\n\n![Build and Release](https://github.com/abcfy2/aria2-static-build/actions/workflows/build_and_release.yml/badge.svg)\n\naria2 static build using musl that supports many platforms.\n\n## Download\n\nYou can download from [Continuous Build](https://github.com/abcfy2/aria2-static-build/releases/tag/continuous) (Weekly build from aria2 master branch with latest dependencies).\n\nOr download from [latest release](https://github.com/abcfy2/aria2-static-build/releases/latest) build (Build from aria2 latest release version).\n\n## Android users NOTE\n\nIf you are executing in an Android environment (such as x86_64, arm, or aarch64), please follow the official aria2 Android README: https://github.com/aria2/aria2/blob/master/README.android\n\nHere is a sample:\n\n```sh\ncat /etc/security/cacerts/* | ./aria2c --ca-certificate=/proc/self/fd/0 --async-dns-server=1.1.1.1 https://github.com/\n```\n\nPlease note that `getprop net.dns1` does not work since Android 8, so you must set a valid DNS manually.\n\n## https certificates NOTE (Linux Only)\n\nSSL certificates location may vary from different distributions. E.g: Ubuntu uses `/etc/ssl/certs/ca-certificates.crt`, but CentOS uses `/etc/pki/tls/certs/ca-bundle.crt`.\n\nIt's impossible to detect the certificate locations in all distributions. See issue: [openssl/openssl#7481](https://github.com/openssl/openssl/issues/7481). Fortunately, most distributions may contain a symbolic link `/etc/ssl/cert.pem` that points to the actual file path.\n\nSo I set compile options `--openssldir=/etc/ssl/` for openssl/libressl. Which works for most distributions.\n\nIf your environment contains the file `/etc/ssl/openssl.cnf` or `/etc/ssl/cert.pem`, you are lucky and can use my build out of the box.\n\nIf your environment does not contain any of these files, you must do one of the following to ensure HTTPS requests work.\n\n- add `--ca-certificate=/path/to/your/certificate` to `aria2c` or set `ca-certificate=/path/to/your/certificate` in `~/.aria2/aria2.conf`. E.g: `./aria2c --ca-certificate=/etc/pki/tls/certs/ca-bundle.crt https://github.com/`\n- Or add `SSL_CERT_FILE=/path/to/your/certificate` environment variable before you run `aria2c`. E.g: `export SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt; ./aria2c https://github.com/` or `SSL_CERT_FILE=/etc/pki/tls/certs/ca-bundle.crt ./aria2c https://github.com/`\n\n\u003e Reference for different distribution certificates locations: https://gitlab.com/probono/platformissues/blob/master/README.md#certificates\n\n## Fedora users NOTE\n\nFedora's openssl may contains some non-official patches and contains some configurations not support by this build openssl.\n\nFor this scenario, you can force set an `OPENSSL_CONF` environment variable to point to an invalid path before run `aria2c`. E.g:\n\n```sh\nOPENSSL_CONF=/tmp ./aria2c https://github.com/\n```\n\nThis will not be interfered with by Fedora's openssl configuration.\n\n## Build locally yourself\n\nRequirements:\n\n- docker\n\n```sh\ndocker run --rm -v `pwd`:/build abcfy2/musl-cross-toolchain-ubuntu:${CROSS_HOST} /build/build.sh\n\n# For x86_64-w64-mingw32 and i686-w64-mingw32 please use abcfy2/mingw-cross-toolchain-ubuntu instead:\ndocker run --rm -v `pwd`:/build abcfy2/mingw-cross-toolchain-ubuntu:${CROSS_HOST} /build/build.sh\n```\n\n\u003e You can also use my GHCR image as alternative: [ghcr.io/abcfy2/musl-cross-toolchain-ubuntu](https://github.com/abcfy2/docker-musl-cross-toolchain-ubuntu/pkgs/container/musl-cross-toolchain-ubuntu) and [ghcr.io/abcfy2/mingw-cross-toolchain-ubuntu](https://github.com/abcfy2/docker-mingw-cross-toolchain-ubuntu/pkgs/container/mingw-cross-toolchain-ubuntu)\n\nAll avaliable `CROSS_HOST` can be found in [Tags](https://hub.docker.com/r/abcfy2/musl-cross-toolchain-ubuntu/tags) page.\n\n**NOTE**: Currently I only tested these tags:\n\n- arm-unknown-linux-musleabi\n- aarch64-unknown-linux-musl\n- loongarch64-unknown-linux-musl\n- mips-unknown-linux-musl\n- mipsel-unknown-linux-musl\n- mips64-unknown-linux-musl\n- x86_64-unknown-linux-musl\n- i686-unknown-linux-musl\n- x86_64-w64-mingw32\n- i686-w64-mingw32\n\nIf you want to build for other platform, you may have to modify `build.sh` to suitable for your platform.\n\nCached build dependencies (`downloads/`), `build_info.md` and `aria2c` will be found in current directory.\n\nYou can set more optional environment variables in `docker` command like:\n\n```sh\ndocker run --rm -v `pwd`:/build -e USE_ZLIB_NG=0 -e USE_LIBRESSL=1 abcfy2/musl-cross-toolchain-ubuntu:${CROSS_HOST} /build/build.sh\n```\n\nOptional environment variables:\n\n- `ARIA2_VER`: build specific version of aria2, e.g: `1.36.0`. Default: `master`.\n- `USE_CHINA_MIRROR`: set to `1` will use China mirrors, if you were located in China, please set to `1`. Default: `0`.\n- `USE_ZLIB_NG`: use [zlib-ng](https://github.com/zlib-ng/zlib-ng) instead of [zlib](https://zlib.net/). Default: `1`\n- `USE_LIBRESSL`: use [LibreSSL](https://www.libressl.org/) instead of [OpenSSL](https://www.openssl.org/). Default: `0`. **_NOTE_**, if `CROSS_HOST=x86_64-w64-mingw32` will not use openssl or libressl because aria2 and all dependencies will use WinTLS instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabcfy2%2Faria2-static-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabcfy2%2Faria2-static-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabcfy2%2Faria2-static-build/lists"}