Skip to content

Commit 7e95dcd

Browse files
committed
Added README and release script for mingw build
1 parent fc0e378 commit 7e95dcd

File tree

3 files changed

+135
-0
lines changed

3 files changed

+135
-0
lines changed

README.mingw

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
aria2 Windows build
2+
===================
3+
4+
aria2 Windows build is provided in 2 flavors: 32bit version and 64bit
5+
version. The executable was compiled using mingw-w64 cross compiler on
6+
Debian Linux.
7+
8+
* gcc-mingw-w64 4.6.2-14+3
9+
* binutils-mingw-w64-i686 2.22-1+1
10+
* binutils-mingw-w64-x86-64 2.22-1+1
11+
12+
The executable is statically linked, so no extra DLLs are
13+
necessary. The linked libraries are:
14+
15+
* openssl 1.0.0h
16+
* expat 2.1.0
17+
* sqlite 3.7.11
18+
* zlib 1.2.6
19+
* c-ares 1.7.5
20+
21+
This build has the following difference from the original release:
22+
23+
* 32bit version only: ``--disable-ipv6`` is enabled by default. (In
24+
other words, IPv6 support is disabled by default).
25+
26+
Known Issues
27+
------------
28+
29+
* When Ctrl-C is pressed, aria2 shows "Shutdown sequence
30+
commencing... Press Ctrl-C again for emergency shutdown." But
31+
mingw32 build cannot handle second Ctrl-C properly. The second
32+
Ctrl-C just kills aria2 instantly without proper shutdown sequence
33+
and you may lose data. So don't press Ctrl-C twice.
34+
35+
* --daemon option doesn't work.
36+
37+
* 32bit version only: When ``--disable-ipv6=false`` is given,
38+
BitTorrent DHT may not work properly.
39+
40+
* 32bit version only: Most of the IPv6 functionality does not work
41+
even if ``--disable-ipv6=false`` is given.
42+
43+
References
44+
----------
45+
46+
* http://smithii.com/aria2
47+
* http://kemovitra.blogspot.com/2009/12/download-aria2-163.html

mingw-release

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/sh -e
2+
3+
# aria2 - The high speed download utility
4+
#
5+
# Copyright (C) 2012 Tatsuhiro Tsujikawa
6+
#
7+
# This program is free software; you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation; either version 2 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program; if not, write to the Free Software
19+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20+
#
21+
# In addition, as a special exception, the copyright holders give
22+
# permission to link the code of portions of this program with the
23+
# OpenSSL library under certain conditions as described in each
24+
# individual source file, and distribute linked combinations
25+
# including the two.
26+
# You must obey the GNU General Public License in all respects
27+
# for all of the code used other than OpenSSL. If you modify
28+
# file(s) with this exception, you may extend this exception to your
29+
# version of the file(s), but you are not obligated to do so. If you
30+
# do not wish to do so, delete this exception statement from your
31+
# version. If you delete this exception statement from all source
32+
# files in the program, then also delete it here.
33+
34+
test -z "$HOST" && HOST=i686-w64-mingw32
35+
test -z "$BUILD_VER" && BUILD_VER=1
36+
37+
. ./script-helper
38+
39+
get_version
40+
41+
if [ -z "$VERSION" ]; then
42+
echo "No version found"
43+
exit 1
44+
fi
45+
46+
DIST_DIR=aria2-${VERSION}-${HOST}-build${BUILD_VER}
47+
48+
/usr/bin/$HOST-strip src/aria2c.exe
49+
mkdir $DIST_DIR
50+
cp AUTHORS COPYING ChangeLog LICENSE.OpenSSL NEWS README.html README.mingw \
51+
src/aria2c.exe $DIST_DIR
52+
zip -9 -r $DIST_DIR.zip $DIST_DIR
53+
rm -rf $DIST_DIR

script-helper

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# aria2 - The high speed download utility
2+
#
3+
# Copyright (C) 2012 Tatsuhiro Tsujikawa
4+
#
5+
# This program is free software; you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation; either version 2 of the License, or
8+
# (at your option) any later version.
9+
#
10+
# This program is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
#
15+
# You should have received a copy of the GNU General Public License
16+
# along with this program; if not, write to the Free Software
17+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18+
#
19+
# In addition, as a special exception, the copyright holders give
20+
# permission to link the code of portions of this program with the
21+
# OpenSSL library under certain conditions as described in each
22+
# individual source file, and distribute linked combinations
23+
# including the two.
24+
# You must obey the GNU General Public License in all respects
25+
# for all of the code used other than OpenSSL. If you modify
26+
# file(s) with this exception, you may extend this exception to your
27+
# version of the file(s), but you are not obligated to do so. If you
28+
# do not wish to do so, delete this exception statement from your
29+
# version. If you delete this exception statement from all source
30+
# files in the program, then also delete it here.
31+
32+
get_version () {
33+
VERSION=`grep AC_INIT configure.ac | sed '/AC_INIT/ s/AC_INIT(\[aria2\],\[\([^]]\+\)\],.*/\1/'`
34+
echo "Version: $VERSION"
35+
}

0 commit comments

Comments
 (0)