add spec file
This commit is contained in:
parent
363f4fcdca
commit
d397c7bbe2
|
@ -1,2 +1,4 @@
|
|||
.venv/
|
||||
src/__pycache__/
|
||||
src/__pycache__/
|
||||
build/
|
||||
dist/
|
|
@ -0,0 +1,44 @@
|
|||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
|
||||
a = Analysis(
|
||||
['src/main.py'],
|
||||
pathex=['src'],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=['tkinter','PIL','PIL._tkinter_finder'],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
noarchive=False,
|
||||
optimize=0,
|
||||
)
|
||||
pyz = PYZ(a.pure)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
[],
|
||||
exclude_binaries=True,
|
||||
name='ISPController',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
console=True,
|
||||
disable_windowed_traceback=False,
|
||||
argv_emulation=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
||||
coll = COLLECT(
|
||||
exe,
|
||||
a.binaries,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
name='ISPController',
|
||||
)
|
|
@ -1,3 +1,4 @@
|
|||
altgraph==0.17.4
|
||||
CTkMessagebox==2.7
|
||||
customtkinter==5.2.2
|
||||
darkdetect==0.8.0
|
||||
|
@ -5,6 +6,8 @@ future==1.0.0
|
|||
iso8601==2.1.0
|
||||
packaging==24.1
|
||||
pillow==10.4.0
|
||||
pyinstaller==6.9.0
|
||||
pyinstaller-hooks-contrib==2024.7
|
||||
pyserial==3.5
|
||||
PyYAML==6.0.1
|
||||
serial==0.0.97
|
||||
|
|
|
@ -328,6 +328,7 @@ class App(ctk.CTk):
|
|||
self.serial.write(bytes.encode())
|
||||
else:
|
||||
print("Please Connect to Serial")
|
||||
messagebox.showError("Please Connect Serial Port")
|
||||
|
||||
def run(self):
|
||||
self.mainloop()
|
||||
|
|
Loading…
Reference in New Issue