From 7a6df241098e0e97a0df9e562c8dd60d43e77c34 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 9 Jun 2024 13:42:51 +0200 Subject: [PATCH] Fixes --- .gitignore | 1 - BTClockOTA.spec | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 +- requirements.txt | 2 ++ 4 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 BTClockOTA.spec diff --git a/.gitignore b/.gitignore index 05c5808..000754a 100644 --- a/.gitignore +++ b/.gitignore @@ -82,7 +82,6 @@ MANIFEST # Usually these files are written by a python script from a template # before PyInstaller builds the exe, so as to inject date/other infos into it. *.manifest -*.spec # Installer logs pip-log.txt diff --git a/BTClockOTA.spec b/BTClockOTA.spec new file mode 100644 index 0000000..bbab98f --- /dev/null +++ b/BTClockOTA.spec @@ -0,0 +1,51 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['app.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=['zeroconf._utils.ipaddress', 'zeroconf._handlers.answers'], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + [], + exclude_binaries=True, + name='BTClockOTA', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['update-icon.icns'], +) +coll = COLLECT( + exe, + a.binaries, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='BTClockOTA', +) +app = BUNDLE( + coll, + name='BTClockOTA.app', + icon='update-icon.icns', + bundle_identifier=None, +) diff --git a/README.md b/README.md index af0416e..7ac1800 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ pyinstaller --hidden-import zeroconf._utils.ipaddress --hidden-import zeroconf._ ### Windows ```` -pyinstaller.exe --hidden-import zeroconf._utils.ipaddress --hidden-import zeroconf._handlers.answers -n BTClockOTA --windowed app.py` +pyinstaller.exe --hidden-import zeroconf._utils.ipaddress --hidden-import zeroconf._handlers.answers --hidden-import pyserial -n BTClockOTA --windowed --onefile app.py ```` ### Linux diff --git a/requirements.txt b/requirements.txt index 111d6d1..3eb232d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ Requests==2.31.0 wxPython==4.2.1 zeroconf==0.132.2 +esptool==4.7.0 +pyserial==3.5 \ No newline at end of file