2020-04-27 09:43:05 -04:00
|
|
|
#include "pch.h"
|
|
|
|
|
#include "utility.h"
|
2020-04-29 16:42:50 -04:00
|
|
|
#include "net.h"
|
2020-11-09 01:11:08 -05:00
|
|
|
#include "core/conf.h"
|
|
|
|
|
#include "core/op.h"
|
|
|
|
|
#include "core/context.h"
|
2020-04-27 09:43:05 -04:00
|
|
|
|
2020-05-02 03:12:34 -04:00
|
|
|
namespace mob
|
2020-04-27 09:43:05 -04:00
|
|
|
{
|
|
|
|
|
|
2020-11-12 19:02:36 -05:00
|
|
|
std::string mob_version()
|
|
|
|
|
{
|
|
|
|
|
return "mob 5.0";
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-07 12:12:40 -04:00
|
|
|
url make_prebuilt_url(const std::string& filename)
|
|
|
|
|
{
|
|
|
|
|
return
|
|
|
|
|
"https://github.com/ModOrganizer2/modorganizer-umbrella/"
|
|
|
|
|
"releases/download/1.1/" + filename;
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-07 15:08:25 -04:00
|
|
|
url make_appveyor_artifact_url(
|
|
|
|
|
arch a, const std::string& project, const std::string& filename)
|
|
|
|
|
{
|
|
|
|
|
std::string arch_s;
|
|
|
|
|
|
|
|
|
|
switch (a)
|
|
|
|
|
{
|
|
|
|
|
case arch::x86:
|
|
|
|
|
arch_s = "x86";
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case arch::x64:
|
|
|
|
|
arch_s = "x64";
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case arch::dont_care:
|
|
|
|
|
default:
|
|
|
|
|
gcx().bail_out(context::generic, "bad arch");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
"https://ci.appveyor.com/api/projects/Modorganizer2/" +
|
|
|
|
|
project + "/artifacts/" + filename + "?job=Platform:%20" + arch_s;
|
|
|
|
|
}
|
2020-05-07 12:12:40 -04:00
|
|
|
|
2020-04-27 09:43:05 -04:00
|
|
|
} // namespace
|