Expanded mirroring script to all dependencies, added new mirror (mirumu.jp) and updated download scripts.
This commit is contained in:
30
web/get-dependency.php
Normal file
30
web/get-dependency.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
$mirrors_file = "";
|
||||
switch ($_GET["file"])
|
||||
{
|
||||
case "ra":
|
||||
$mirrors_file = "packages/ra-mirrors.txt";
|
||||
break;
|
||||
case "cnc":
|
||||
$mirrors_file = "packages/cnc-mirrors.txt";
|
||||
break;
|
||||
case "osx":
|
||||
$mirrors_file = "releases/mac/osx-dependencies-mirrors.txt";
|
||||
break;
|
||||
case "freetype":
|
||||
$mirrors_file = "releases/windows/freetype-mirrors.txt";
|
||||
break;
|
||||
case "cg":
|
||||
$mirrors_file = "releases/windows/cg-mirrors.txt";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
$mirrors = file_get_contents($mirrors_file);
|
||||
$mirrors_array = explode("\n", $mirrors);
|
||||
|
||||
$mirror = $mirrors_array[array_rand($mirrors_array, 1)];
|
||||
|
||||
header('Location: '. $mirror);
|
||||
?>
|
||||
@@ -1,3 +1,4 @@
|
||||
http://metahash.com/packages/cnc-packages.zip
|
||||
http://openra.res0l.net/packages/cnc-packages.zip
|
||||
http://open-ra.org/packages/cnc-packages.zip
|
||||
http://mirumu.jp/pub/packages/cnc-packages.zip
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
$mirrors = file_get_contents("cnc-mirrors.txt");
|
||||
$mirrors_array = explode("\n", $mirrors);
|
||||
|
||||
$mirror = $mirrors_array[array_rand($mirrors_array, 1)];
|
||||
|
||||
header('Location: '. $mirror);
|
||||
?>
|
||||
@@ -1,3 +1,4 @@
|
||||
http://metahash.com/packages/ra-packages.zip
|
||||
http://openra.res0l.net/packages/ra-packages.zip
|
||||
http://open-ra.org/packages/ra-packages.zip
|
||||
http://mirumu.jp/pub/packages/ra-packages.zip
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?php
|
||||
$mirrors = file_get_contents("ra-mirrors.txt");
|
||||
$mirrors_array = explode("\n", $mirrors);
|
||||
|
||||
$mirror = $mirrors_array[array_rand($mirrors_array, 1)];
|
||||
|
||||
header('Location: '. $mirror);
|
||||
?>
|
||||
4
web/releases/mac/osx-dependencies-mirrors.txt
Normal file
4
web/releases/mac/osx-dependencies-mirrors.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
http://open-ra.org/releases/mac/osx-deps-v2.zip
|
||||
http://openra.res0l.net/releases/mac/osx-deps-v2.zip
|
||||
http://metahash.com/releases/mac/osx-deps-v2.zip
|
||||
http://mirumu.jp/pub/releases/mac/osx-deps-v2.zip
|
||||
4
web/releases/windows/cg-mirrors.txt
Normal file
4
web/releases/windows/cg-mirrors.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
http://open-ra.org/releases/windows/cg-win32.zip
|
||||
http://openra.res0l.net/releases/windows/cg-win32.zip
|
||||
http://metahash.com/releases/windows/cg-win32.zip
|
||||
http://mirumu.jp/pub/releases/windows/cg-win32.zip
|
||||
4
web/releases/windows/freetype-mirrors.txt
Normal file
4
web/releases/windows/freetype-mirrors.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
http://open-ra.org/releases/windows/freetype-zlib.zip
|
||||
http://openra.res0l.net/releases/windows/freetype-zlib.zip
|
||||
http://metahash.com/releases/windows/freetype-zlib.zip
|
||||
http://mirumu.jp/pub/releases/windows/freetype-zlib.zip
|
||||
Reference in New Issue
Block a user