Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Add simple mirroing script
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyShestakov committed Feb 11, 2018
1 parent bb6d10b commit 7f6e582
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# vcmi-deps-mxe
Mirroring for MXE.cc deb repository
# Mirror of MXE.cc deb repository for [VCMI](https://github.com/vcmi/vcmi)

Travis CI download speed from MXE repository is constantly getting very slow. So we mirror it.
32 changes: 32 additions & 0 deletions mirror-mxe.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/bash
export MXE_TARGET=i686-w64-mingw32.shared
export MIRROR_DATE=`date +"%Y-%m-%d"`

sudo apt-get clean

echo "deb http://pkg.mxe.cc/repos/apt/debian wheezy main" \
| sudo tee /etc/apt/sources.list.d/mxeapt.list

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB

sudo apt-get update -qq
sudo apt-get install -q --yes --download-only \
mxe-$MXE_TARGET-gcc \
mxe-$MXE_TARGET-boost \
mxe-$MXE_TARGET-zlib \
mxe-$MXE_TARGET-sdl2 \
mxe-$MXE_TARGET-sdl2-gfx \
mxe-$MXE_TARGET-sdl2-image \
mxe-$MXE_TARGET-sdl2-mixer \
mxe-$MXE_TARGET-sdl2-ttf \
mxe-$MXE_TARGET-ffmpeg \
mxe-$MXE_TARGET-qt \
mxe-$MXE_TARGET-qtbase

sudo apt-key del D43A795B73B16ABE9643FE1AFD8FFF16DB45C6AB
sudo rm /etc/apt/sources.list.d/mxeapt.list

cd /var/cache/apt/archives/
tar cvf /tmp/mxe-$MXE_TARGET-$MIRROR_DATE.tar /var/cache/apt/archives/mxe-*.deb

sudo apt-get clean

0 comments on commit 7f6e582

Please sign in to comment.