Update build process to include certificate directory for SSL verification in frozen builds
This commit is contained in:
@@ -117,10 +117,10 @@ def build(build: bool = True, copy: bool = True, test: bool = False, dest: str |
|
||||
name_used = f"{base_name}_{ts}"
|
||||
print(f"Previous artifact appears locked; building as {name_used} to avoid PermissionError")
|
||||
|
||||
# Ensure cert.pem is included for test builds as well (if present)
|
||||
cert_path = project_root / "cert.pem"
|
||||
if cert_path.exists():
|
||||
arg = f"{str(cert_path)};."
|
||||
# Ensure cert folder is included for test builds as well (if present)
|
||||
cert_dir = project_root / "cert"
|
||||
if cert_dir.exists() and cert_dir.is_dir():
|
||||
arg = f"{str(cert_dir)};cert"
|
||||
# Avoid adding duplicate entries
|
||||
if arg not in add_data_args:
|
||||
add_data_args += ["--add-data", arg]
|
||||
|
||||
Reference in New Issue
Block a user