fixed ssl cert

This commit is contained in:
dekuNukem
2026-02-09 16:12:16 +00:00
parent 1df4a6eb5a
commit 99955c708f
4 changed files with 32 additions and 24 deletions
+29 -23
View File
@@ -9,39 +9,45 @@ if 'win32' not in sys.platform:
exit()
def clean(additional=None):
removethese = ['__pycache__','build','dist','*.spec']
if additional:
removethese.append(additional)
for _object in removethese:
target=glob(os.path.join('.', _object))
for _target in target:
try:
if os.path.isdir(_target):
shutil.rmtree(_target)
else:
os.remove(_target)
except:
print(f'Error deleting {_target}.')
removethese = ['__pycache__','build','dist','*.spec']
if additional:
removethese.append(additional)
for _object in removethese:
target=glob(os.path.join('.', _object))
for _target in target:
try:
if os.path.isdir(_target):
shutil.rmtree(_target)
else:
os.remove(_target)
except:
print(f'Error deleting {_target}.')
THIS_VERSION = None
try:
mainfile = open('duckypad_config.py')
for line in mainfile:
if "THIS_VERSION_NUMBER =" in line:
THIS_VERSION = line.replace('\n', '').replace('\r', '').split("'")[-2]
mainfile.close()
mainfile = open('duckypad_config.py')
for line in mainfile:
if "THIS_VERSION_NUMBER =" in line:
THIS_VERSION = line.replace('\n', '').replace('\r', '').split("'")[-2]
mainfile.close()
except Exception as e:
print('build_windows exception:', e)
exit()
print('build_windows exception:', e)
exit()
if THIS_VERSION is None:
print('could not find version number!')
exit()
print('could not find version number!')
exit()
# --noconsole
clean(additional='duckypad*.zip')
PyInstaller.__main__.run(['duckypad_config.py','--icon=_icon.ico'])
# Using --collect-all=certifi to automatically grab all certs and modules
PyInstaller.__main__.run([
'duckypad_config.py',
'--icon=_icon.ico',
'--collect-all=certifi'
])
output_folder_path = os.path.join('.', "dist")
original_name = os.path.join(output_folder_path, "duckypad_config")
+1 -1
View File
@@ -192,7 +192,7 @@ New HID command format
Allows empty IF, WHILE, and FUN block
allows '\' in DEFINEs
chained boolops working
fixed SSL certificate not found error
"""
THIS_VERSION_NUMBER = '4.0.2'
Binary file not shown.
+2
View File
@@ -1,5 +1,7 @@
import os
import shutil
import certifi
os.environ["SSL_CERT_FILE"] = certifi.where()
import webbrowser
from platformdirs import *
from pathlib import Path