Fix TLS handshake fail preventing AssetLib use

Fix "Editor TLS Certificates" having an invalid (False) default value.

Fix cannot open X509CertificateMbedTLS file 'False'

Fixes https://github.com/NixOS/nixpkgs/issues/454608

Co-authored-by: @akien-mga
This commit is contained in:
superherointj 2026-01-27 09:46:42 -03:00
parent 8fb5cd8779
commit 29acd734c7

View file

@ -78,7 +78,7 @@ def make_certs_header(target, source, env):
with methods.generated_wrapper(str(target[0])) as file:
# System certs path. Editor will use them if defined. (for package maintainers)
file.write(f'#define _SYSTEM_CERTS_PATH "{source[2]}"\n')
file.write('#define _SYSTEM_CERTS_PATH "{}"\n'.format(source[2].read() or ""))
if source[1].read():
# Defined here and not in env so changing it does not trigger a full rebuild.
file.write(f"""\