Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: beta updater #1197

Merged
merged 14 commits into from
Sep 16, 2024
Merged

feat: beta updater #1197

merged 14 commits into from
Sep 16, 2024

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

engine/main.cc Outdated Show resolved Hide resolved
@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
Collaborator

@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
4 checks passed
@vansangpfiev vansangpfiev deleted the feat/beta-updater branch September 16, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ci: Updater for beta release
3 participants