Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/include/update.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static std::string fetch_path_with_timeout_flag(HINTERNET hSession,



// FastFlowLM/FastFlowLM
// ROCm/FastFlowLM
static std::optional<std::string> http_get_latest_tag_from_github(bool& timed_out) {
timed_out = false;

Expand All @@ -176,7 +176,7 @@ static std::optional<std::string> http_get_latest_tag_from_github(bool& timed_ou
{
bool t = false;
std::string body = fetch_path_with_timeout_flag(hSession, host, port,
L"/repos/FastFlowLM/FastFlowLM/releases/latest", t);
L"/repos/ROCm/FastFlowLM/releases/latest", t);
timed_out = timed_out || t;
if (!body.empty()) {
try {
Expand All @@ -194,7 +194,7 @@ static std::optional<std::string> http_get_latest_tag_from_github(bool& timed_ou
{
bool t = false;
std::string body = fetch_path_with_timeout_flag(hSession, host, port,
L"/repos/FastFlowLM/FastFlowLM/tags?per_page=1", t);
L"/repos/ROCm/FastFlowLM/tags?per_page=1", t);
timed_out = timed_out || t;
if (!body.empty()) {
try {
Expand Down Expand Up @@ -231,7 +231,7 @@ static void check_and_notify_new_version() {
const std::string latest = latest_opt.value();
if (compare_semver(latest, current) > 0) {
header_print("FLM", "New version detected! (current v" << current << ", latest " << latest << ")");
header_print("FLM", "Download link: https://github.com/FastFlowLM/FastFlowLM/releases/latest/download/flm-setup.exe");
header_print("FLM", "Download link: https://github.com/ROCm/FastFlowLM/releases/latest/download/flm-setup.exe");
}
}
#else
Expand All @@ -241,7 +241,7 @@ static size_t curl_write_cb(char* ptr, size_t size, size_t nmemb, void* userdata
return size * nmemb;
}

// FastFlowLM/FastFlowLM (non-Windows)
// ROCm/FastFlowLM (non-Windows)
static std::optional<std::string> http_get_latest_tag_from_github(bool& timed_out) {
timed_out = false;
auto fetch_url = [&](const char* url) -> std::optional<std::string> {
Expand All @@ -266,7 +266,7 @@ static std::optional<std::string> http_get_latest_tag_from_github(bool& timed_ou
return body;
};

if (auto body = fetch_url("https://api.github.com/repos/FastFlowLM/FastFlowLM/releases/latest")) {
if (auto body = fetch_url("https://api.github.com/repos/ROCm/FastFlowLM/releases/latest")) {
try {
auto j = nlohmann::json::parse(*body);
if (j.contains("tag_name") && j["tag_name"].is_string()) {
Expand All @@ -275,7 +275,7 @@ static std::optional<std::string> http_get_latest_tag_from_github(bool& timed_ou
} catch (...) {}
}

if (auto body = fetch_url("https://api.github.com/repos/FastFlowLM/FastFlowLM/tags?per_page=1")) {
if (auto body = fetch_url("https://api.github.com/repos/ROCm/FastFlowLM/tags?per_page=1")) {
try {
auto j = nlohmann::json::parse(*body);
if (j.is_array() && !j.empty() && j[0].contains("name") && j[0]["name"].is_string()) {
Expand Down Expand Up @@ -304,7 +304,7 @@ static void check_and_notify_new_version() {
const std::string latest = latest_opt.value();
if (compare_semver(latest, current) > 0) {
header_print("FLM", "New version detected! (current v" << current << ", latest " << latest << ")");
header_print("FLM", "Download link: https://github.com/FastFlowLM/FastFlowLM/releases/latest/download/flm-setup.exe");
header_print("FLM", "Download link: https://github.com/ROCm/FastFlowLM/releases/latest/download/flm-setup.exe");
}
}
#endif
Loading