include cert.pem for SSL verification in frozen builds and update build process to handle CA bundles

This commit is contained in:
Ross
2025-11-24 15:30:48 +00:00
parent 84d18f25e1
commit 377be258de
4 changed files with 100 additions and 5 deletions
+6 -1
View File
@@ -8,7 +8,12 @@ here = Path(__file__).resolve().parent
project_root = here
# Prepare datas and binaries lists; include icon resources
datas = [(str(project_root / 'icon'), 'icon'), (str(project_root / 'icon' / 'icon1.png'), 'icon')]
datas = [
(str(project_root / 'icon'), 'icon'),
(str(project_root / 'icon' / 'icon1.png'), 'icon'),
# include user-supplied CA bundle if present so frozen app can use it
(str(project_root / 'cert.pem'), '.')
]
binaries = []
# Try to include pythonnet runtime DLLs so Python.Runtime.dll is available