-
Notifications
You must be signed in to change notification settings - Fork 181
fix: nightly updater #1202
fix: nightly updater #1202
Conversation
engine/commands/cortex_upd_cmd.h
Outdated
| } | ||
| std::filesystem::path temp = std::filesystem::temp_directory_path() / "cortex_temp"; | ||
| std::filesystem::path temp = | ||
| file_manager_utils::GetExecutableFolderContainerPath() / "cortex_temp"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should rename in the same folder
|
|
||
| // Delete temporary file if it exists | ||
| auto temp = | ||
| file_manager_utils::GetExecutableFolderContainerPath() / "cortex_temp"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After cortex update, we can only remove temporary file at the next start
| container_folder_path = current_path; | ||
| } else if (type == "Cortex") { | ||
| container_folder_path = current_path / "cortex"; | ||
| container_folder_path = std::filesystem::temp_directory_path() / "cortex"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download binary to temp folder
| // Replace binay file | ||
| auto executable_path = file_manager_utils::GetExecutableFolderContainerPath(); | ||
| auto src = executable_path / "cortex" / GetCortexBinary(); | ||
| auto src = std::filesystem::temp_directory_path() / "cortex" / kCortexBinary / |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change accordingly to s3 structure
namchuai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ looks good to me
Describe Your Changes
cortex update, we rename it tocortex_tempthen need to delete at the next start.Fixes Issues
Self Checklist