Skip to content

Commit

Permalink
Add new alternate repository for mxe (CleverRaven#27644)
Browse files Browse the repository at this point in the history
* Add new alternate repository for mxe
The mxe project has migrated its packages to http://mirror.mxe.cc/repos/apt
  • Loading branch information
kevingranade authored Jan 17, 2019
1 parent ad67f44 commit a67b4a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,15 @@ jobs:
packages: ["g++-8", "g++-8-multilib", "libc6-dbg", "libc6-dbg:i386", "libsdl2-dev", "libsdl2-ttf-dev", "libsdl2-image-dev", "libsdl2-mixer-dev"]
sources: *apt_sources

# MXE variants disabled while pkg.mxe.cc is down
# MXE variants using alternate repository http://mirror.mxe.cc/repos/apt
# GCC MinGW
- env: COMPILER='g++' LDFLAGS='-static-libgcc -static-libstdc++' MXE_TARGET='i686-w64-mingw32.static' WINE='wine'
if: type = disabled
addons: &gcc
apt:
packages: ["wine"]

# Windows Tiles
- env: COMPILER='g++' LDFLAGS='-static-libgcc -static-libstdc++' MXE_TARGET='i686-w64-mingw32.static' WINE='wine' TILES=1 SOUND=1
if: type = disabled
compiler: gcc
addons: &gcc
apt:
Expand Down
6 changes: 2 additions & 4 deletions build-scripts/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ fi

# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
if [ -n "${MXE_TARGET}" ]; then
echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" \
| sudo tee /etc/apt/sources.list.d/mxeapt.list
travis_retry sudo apt-key adv --keyserver x-hkp://keyserver.ubuntu.com:80 \
--recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
sudo add-apt-repository 'deb [arch=amd64] https://mirror.mxe.cc/repos/apt xenial main'
travis_retry sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 84C7C89FC632241A6999ED0A580873F586B72ED9
# We need to treat apt-get update warnings as errors for which the exit code
# is not sufficient. The following workaround inspired by
# https://unix.stackexchange.com/questions/175146/apt-get-update-exit-status/
Expand Down

0 comments on commit a67b4a0

Please sign in to comment.