Fixes
This commit is contained in:
parent
50e85f6c96
commit
7a6df24109
4 changed files with 54 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -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
|
||||
|
|
51
BTClockOTA.spec
Normal file
51
BTClockOTA.spec
Normal file
|
@ -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,
|
||||
)
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
Requests==2.31.0
|
||||
wxPython==4.2.1
|
||||
zeroconf==0.132.2
|
||||
esptool==4.7.0
|
||||
pyserial==3.5
|
Loading…
Reference in a new issue