Release: use independent component repositories
This commit is contained in:
1 parent
2fba7d2dea
commit
8f7ae36e0f
5 files changed
+47
-7
No files matched your search
@@ -3162,6 +3162,15 @@ namespace Echoion::Standalone
|
||||
return impl_->handle(method, requestJson);
|
||||
}
|
||||
|
||||
UpdateControlHandler bindUpdateService(std::shared_ptr<UpdateService> service)
|
||||
{
|
||||
return [service = std::move(service)](
|
||||
const std::string& method,
|
||||
const std::string& requestJson) {
|
||||
return service->handle(method, requestJson);
|
||||
};
|
||||
}
|
||||
|
||||
Api::Result<ManagedCoreStartupSelection>
|
||||
selectManagedCoreForStartup(const std::filesystem::path& stateDirectory,
|
||||
const std::filesystem::path& bundledCore,
|
||||
|
||||
+2
-5
@@ -720,7 +720,7 @@ int main(int argc, char** argv)
|
||||
|
||||
const auto updaterExecutable =
|
||||
runningExecutable->parent_path() / "echoion-updater";
|
||||
auto updateService = std::make_unique<Echoion::Standalone::UpdateService>(
|
||||
auto updateService = std::make_shared<Echoion::Standalone::UpdateService>(
|
||||
Echoion::Standalone::UpdateService::Options{
|
||||
.configPath = cfgPath,
|
||||
.stateDirectory = stateDirectory,
|
||||
@@ -784,10 +784,7 @@ int main(int argc, char** argv)
|
||||
updateService.reset();
|
||||
} else {
|
||||
interface->setHostControlHandler(
|
||||
[service = updateService.get()](const std::string& method,
|
||||
const std::string& request) {
|
||||
return service->handle(method, request);
|
||||
});
|
||||
Echoion::Standalone::bindUpdateService(updateService));
|
||||
}
|
||||
|
||||
core->triggerAutoConnect();
|
||||
|
||||
Reference in new issue
Block a user