[tools] Change World maps download mirror

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-13 13:06:50 +07:00
parent 066afe4aa8
commit 593f2fd828

View File

@@ -3,6 +3,8 @@
# Please run this script to configure the repository after cloning it. # Please run this script to configure the repository after cloning it.
# #
echo "Configuring the repository for development..."
SKIP_MAP_DOWNLOAD=$SKIP_MAP_DOWNLOAD SKIP_MAP_DOWNLOAD=$SKIP_MAP_DOWNLOAD
SKIP_GENERATE_SYMBOLS=$SKIP_GENERATE_SYMBOLS SKIP_GENERATE_SYMBOLS=$SKIP_GENERATE_SYMBOLS
SKIP_GENERATE_DRULES=$SKIP_GENERATE_DRULES SKIP_GENERATE_DRULES=$SKIP_GENERATE_DRULES
@@ -47,9 +49,11 @@ Diff() {
} }
if [ ! -d 3party/boost/tools ]; then if [ ! -d 3party/boost/tools ]; then
echo "Cloning all submodules..."
git submodule update --init --recursive --depth 1 git submodule update --init --recursive --depth 1
fi fi
if [ ! -d 3party/boost/boost ]; then if [ ! -d 3party/boost/boost ]; then
echo "Bootstrapping the boost C++ library..."
pushd 3party/boost/ pushd 3party/boost/
./bootstrap.sh ./bootstrap.sh
./b2 headers ./b2 headers
@@ -68,11 +72,12 @@ if [ -z "$SKIP_MAP_DOWNLOAD" ]; then
if [ ! -f "$WORLD_PATH" ]; then if [ ! -f "$WORLD_PATH" ]; then
echo "Downloading world map..." 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 rm -f World.mwm; ln -s "$WORLD_PATH" World.mwm
fi fi
if [ ! -f "$WORLD_PATH2" ]; then 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 rm -f WorldCoasts.mwm; ln -s "$WORLD_PATH2" WorldCoasts.mwm
fi fi