mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 04:53:36 +00:00
[tools] Change World maps download mirror
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
# Please run this script to configure the repository after cloning it.
|
||||
#
|
||||
|
||||
echo "Configuring the repository for development..."
|
||||
|
||||
SKIP_MAP_DOWNLOAD=$SKIP_MAP_DOWNLOAD
|
||||
SKIP_GENERATE_SYMBOLS=$SKIP_GENERATE_SYMBOLS
|
||||
SKIP_GENERATE_DRULES=$SKIP_GENERATE_DRULES
|
||||
@@ -47,9 +49,11 @@ Diff() {
|
||||
}
|
||||
|
||||
if [ ! -d 3party/boost/tools ]; then
|
||||
echo "Cloning all submodules..."
|
||||
git submodule update --init --recursive --depth 1
|
||||
fi
|
||||
if [ ! -d 3party/boost/boost ]; then
|
||||
echo "Bootstrapping the boost C++ library..."
|
||||
pushd 3party/boost/
|
||||
./bootstrap.sh
|
||||
./b2 headers
|
||||
@@ -68,11 +72,12 @@ if [ -z "$SKIP_MAP_DOWNLOAD" ]; then
|
||||
|
||||
if [ ! -f "$WORLD_PATH" ]; then
|
||||
echo "Downloading world map..."
|
||||
wget -N "https://cdn.comaps.app/maps/$MWM_VERSION/World.mwm" -P "$MWM_PATH" &&
|
||||
# Using a fi1 maps mirror/CDN
|
||||
wget -N "https://cdn-fi-1.comaps.app/maps/$MWM_VERSION/World.mwm" -P "$MWM_PATH" &&
|
||||
rm -f World.mwm; ln -s "$WORLD_PATH" World.mwm
|
||||
fi
|
||||
if [ ! -f "$WORLD_PATH2" ]; then
|
||||
wget -N "https://cdn.comaps.app/maps/$MWM_VERSION/WorldCoasts.mwm" -P "$MWM_PATH" &&
|
||||
wget -N "https://cdn-fi-1.comaps.app/maps/$MWM_VERSION/WorldCoasts.mwm" -P "$MWM_PATH" &&
|
||||
rm -f WorldCoasts.mwm; ln -s "$WORLD_PATH2" WorldCoasts.mwm
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user