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 4, 2024

#1087
Only support to download latest version for now
Also added cortex -v command
#1066

.\cortex.exe -v
v0.5.0

@vansangpfiev vansangpfiev force-pushed the feat/cortex-update-cmd branch from bbb9bf3 to e950285 Compare September 5, 2024 03:32
@vansangpfiev vansangpfiev marked this pull request as ready for review September 5, 2024 09:14
@namchuai
Copy link
Contributor

namchuai commented Sep 5, 2024

Nice one! I have one question. What happen in windows, if the server is running, then our executable will be in used, right? ? will std::rename fail and failed the update, I think?

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.

✅ Looks good. Just some small nits. Not required though.

@vansangpfiev
Copy link
Contributor Author

vansangpfiev commented Sep 6, 2024

Nice one! I have one question. What happen in windows, if the server is running, then our executable will be in used, right? ? will std::rename fail and failed the update, I think?

We cannot replace but can remove file on windows if it is in used.
Also added a TODO to stop server if it is running before updating.

@vansangpfiev vansangpfiev merged commit 390111c into dev Sep 6, 2024
@vansangpfiev vansangpfiev deleted the feat/cortex-update-cmd branch September 6, 2024 03:50
@dan-menlo dan-menlo added the category: app shell Installer, updaters, distributions label Sep 6, 2024
@dan-menlo
Copy link
Contributor

I am removing this from Project Board:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

category: app shell Installer, updaters, distributions

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants