diff --git a/.gitignore b/.gitignore index 9849862..3f9a75e 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,7 @@ 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 +# *.spec # Installer logs pip-log.txt diff --git a/README.md b/README.md index b76e6d5..b401e45 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,9 @@ deactivate ## First time run of pyinstaller to generate pismotek-remote.spec Windows uses `^` to continues a command on the next line. ``` -pyinstaller --onefile --windowed --icon remotedesktop.ico ^ - --add-data "remotedesktop.ico:." - pismotek-remote.py +pyi-makespec --onefile --windowed --icon remotedesktop.ico ^ + --add-data "remotedesktop.ico:." ^ + --add-data "logo.png:." ^ + --add-data "tvnserver.exe:." ^ + pismotek-remote.py ``` diff --git a/pismotek-remote.spec b/pismotek-remote.spec new file mode 100644 index 0000000..5c99073 --- /dev/null +++ b/pismotek-remote.spec @@ -0,0 +1,39 @@ +# -*- mode: python ; coding: utf-8 -*- + + +a = Analysis( + ['pismotek-remote.py'], + pathex=[], + binaries=[], + datas=[('remotedesktop.ico', '.'), ('logo.png', '.'), ('tvnserver.exe', '.')], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + noarchive=False, + optimize=0, +) +pyz = PYZ(a.pure) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.datas, + [], + name='pismotek-remote', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon=['remotedesktop.ico'], +)