Skip to content

Instantly share code, notes, and snippets.

@zengxs
Last active December 22, 2017 12:08
Show Gist options
  • Save zengxs/9c358fe8ff8354c3fe67887e67d955fc to your computer and use it in GitHub Desktop.
Save zengxs/9c358fe8ff8354c3fe67887e67d955fc to your computer and use it in GitHub Desktop.
Aria2 appveyor auto build

Aria2 build

Aria2 auto build scripts with custom patch for appveyor ci with msys2.

version: 1.33.1-{build}
environment:
matrix:
- COMPILER: msys2
PLATFORM: x64
MSYS2_ARCH: x86_64
MSYS2_DIR: msys64
MSYSTEM: MINGW64
BIT: 6
init:
- set PATH=C:\%MSYS2_DIR%\%MSYSTEM%\bin;C:\%MSYS2_DIR%\usr\bin;%PATH%
- pacman -S --noconfirm --needed base-devel
- pacman -S --noconfirm --needed mingw-w64-x86_64-gmp
- pacman -S --noconfirm --needed mingw-w64-x86_64-expat
- pacman -S --noconfirm --needed mingw-w64-x86_64-sqlite3
- pacman -S --noconfirm --needed mingw-w64-x86_64-zlib
- pacman -S --noconfirm --needed mingw-w64-x86_64-c-ares
- pacman -S --noconfirm --needed mingw-w64-x86_64-libssh2
install:
- bash fetch-src.sh
- patch -p0 < aria2.patch
build_script:
- bash build-deps.sh
- bash build-aria2.sh
artifacts:
- path: '**\*.exe'
name: aria2
diff -rNu aria2/src/OptionHandlerFactory.cc aria2-patched/src/OptionHandlerFactory.cc
--- aria2/src/OptionHandlerFactory.cc 2017-12-21 02:10:29.366118900 +0800
+++ aria2-patched/src/OptionHandlerFactory.cc 2017-12-21 01:57:42.028000200 +0800
@@ -440,7 +440,7 @@
{
OptionHandler* op(new NumberOptionHandler(PREF_MAX_CONNECTION_PER_SERVER,
TEXT_MAX_CONNECTION_PER_SERVER,
- "1", 1, 16, 'x'));
+ "1", 1, -1, 'x'));
op->addTag(TAG_BASIC);
op->addTag(TAG_FTP);
op->addTag(TAG_HTTP);
#!sh.exe -e
set -e
#!sh.exe -e
set -e
#!sh.exe -e
set -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment