#include "pch.h" #include "utility.h" #include "net.h" #include "core/conf.h" #include "core/op.h" #include "core/context.h" namespace mob { std::string mob_version() { return "mob 5.0"; } url make_prebuilt_url(const std::string& filename) { return "https://github.com/ModOrganizer2/modorganizer-umbrella/" "releases/download/1.1/" + filename; } 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; } } // namespace