Release: fix portable runtime and updater

This commit is contained in:
faumaray committed 2026-07-26 16:48:53 +03:00
1 parent 659e4467e0
commit 978930f4d2
5 files changed
+45 -6

No files matched your search

+10
View File
@@ -558,6 +558,16 @@ int main(int argc, char** argv)
std::cerr << "Cannot export ECHOION_HOME\n";
return 2;
}
if (!environmentPath("SSL_CERT_FILE")) {
if (const auto certificateBundle =
Echoion::Standalone::bundledCertificateBundle(installRoot)) {
const auto bundleString = certificateBundle->string();
if (::setenv("SSL_CERT_FILE", bundleString.c_str(), 0) != 0) {
std::cerr << "Cannot export bundled TLS certificate store\n";
return 2;
}
}
}
for (const std::string_view requiredValue : {"--config", "--state-dir"}) {
if (hasArgument(argc, argv, requiredValue) &&
!optionalArgumentPath(argc, argv, requiredValue)) {