代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/aria2 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# Dockerfile to build aria2 Windows binary using ubuntu mingw-w64
# cross compiler chain.
#
# $ sudo docker build -t aria2-mingw - < Dockerfile.mingw
#
# After successful build, windows binary is located at
# /aria2/src/aria2c.exe. You can copy the binary using following
# commands:
#
# $ sudo docker run --rm -it -v /path/to/dest:/out aria2-mingw cp /aria2/src/aria2c.exe /out
FROM ubuntu:22.04
MAINTAINER Tatsuhiro Tsujikawa
# Change HOST to x86_64-w64-mingw32 to build 64-bit binary
ARG HOST=i686-w64-mingw32
# It would be better to use nearest ubuntu archive mirror for faster
# downloads.
# RUN sed -ie 's/archive\.ubuntu/jp.archive.ubuntu/g' /etc/apt/sources.list
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" \
apt-get install -y --no-install-recommends \
make binutils autoconf automake autotools-dev libtool \
patch ca-certificates \
pkg-config git curl dpkg-dev gcc-mingw-w64 g++-mingw-w64 \
autopoint libcppunit-dev libxml2-dev libgcrypt20-dev lzip
RUN curl -L -O https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz && \
curl -L -O https://github.com/libexpat/libexpat/releases/download/R_2_5_0/expat-2.5.0.tar.bz2 && \
curl -L -O https://www.sqlite.org/2023/sqlite-autoconf-3430100.tar.gz && \
curl -L -O https://www.zlib.net/zlib-1.3.tar.gz && \
curl -L -O https://c-ares.org/download/c-ares-1.19.1.tar.gz && \
curl -L -O https://libssh2.org/download/libssh2-1.11.0.tar.bz2
RUN tar xf gmp-6.3.0.tar.xz && \
cd gmp-6.3.0 && \
./configure \
--disable-shared \
--enable-static \
--prefix=/usr/local/$HOST \
--host=$HOST \
--disable-cxx \
--enable-fat \
CFLAGS="-mtune=generic -O2 -g0" && \
make -j$(nproc) install
RUN tar xf expat-2.5.0.tar.bz2 && \
cd expat-2.5.0 && \
./configure \
--disable-shared \
--enable-static \
--prefix=/usr/local/$HOST \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
make -j$(nproc) install
RUN tar xf sqlite-autoconf-3430100.tar.gz && \
cd sqlite-autoconf-3430100 && \
./configure \
--disable-shared \
--enable-static \
--prefix=/usr/local/$HOST \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` && \
make -j$(nproc) install
RUN tar xf zlib-1.3.tar.gz && \
cd zlib-1.3 && \
CC=$HOST-gcc \
AR=$HOST-ar \
LD=$HOST-ld \
RANLIB=$HOST-ranlib \
STRIP=$HOST-strip \
./configure \
--prefix=/usr/local/$HOST \
--libdir=/usr/local/$HOST/lib \
--includedir=/usr/local/$HOST/include \
--static && \
make -j$(nproc) install
RUN tar xf c-ares-1.19.1.tar.gz && \
cd c-ares-1.19.1 && \
./configure \
--disable-shared \
--enable-static \
--without-random \
--prefix=/usr/local/$HOST \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
LIBS="-lws2_32" && \
make -j$(nproc) install
RUN tar xf libssh2-1.11.0.tar.bz2 && \
cd libssh2-1.11.0 && \
./configure \
--disable-shared \
--enable-static \
--prefix=/usr/local/$HOST \
--host=$HOST \
--build=`dpkg-architecture -qDEB_BUILD_GNU_TYPE` \
LIBS="-lws2_32" && \
make -j$(nproc) install
ARG ARIA2_VERSION=master
ARG ARIA2_REF=refs/heads/master
ADD https://api.github.com/repos/aria2/aria2/git/$ARIA2_REF version.json
RUN git clone -b $ARIA2_VERSION --depth 1 https://github.com/aria2/aria2 && \
cd aria2 && autoreconf -i && ./mingw-config && make -j$(nproc) && \
$HOST-strip src/aria2c.exe
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。