Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Conversation

@vansangpfiev
Copy link
Contributor

@vansangpfiev vansangpfiev commented Sep 12, 2024

Describe Your Changes

Support beta updater, for now we have:

  • Stable: retrieves only the latest version.
  • Beta: the latest version is default, specific versions can be retrieved using the -v flag.
  • Nightly: the latest version is default, specific versions can be retrieved using the -v flag.

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

@vansangpfiev vansangpfiev marked this pull request as ready for review September 13, 2024 08:27
Copy link
Contributor

@dan-menlo dan-menlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vansangpfiev Approving to unblock.

Can I check my high-level understanding:

  • We are breaking off beta updater from stable (previous)
  • We are currently hard-coding Github URLs

Just FYI, we likely will support multiple download mirrors in the future, e.g. Github, Gitlab, Gitee

// Download file
constexpr auto github_host = "https://api.github.com";
std::ostringstream release_path;
release_path << "/repos/janhq/cortex.cpp/releases";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vansangpfiev Just a note, we may need to support multiple download sources in the future (e.g. Github, and mirrors in Gitlab, Gitee)

Copy link
Contributor

@namchuai namchuai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Great work! Thank you!

@vansangpfiev vansangpfiev merged commit 6abf575 into dev Sep 16, 2024
@vansangpfiev vansangpfiev deleted the feat/beta-updater branch September 16, 2024 05:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: Updater for beta release

4 participants