added spec file

This commit is contained in:
Fredrcik W. Warren 2024-05-27 02:43:18 -06:00
parent 21b4c6bae4
commit 5911700bc4
3 changed files with 45 additions and 4 deletions

2
.gitignore vendored
View File

@ -31,7 +31,7 @@ MANIFEST
# Usually these files are written by a python script from a template # 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. # before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest *.manifest
*.spec # *.spec
# Installer logs # Installer logs
pip-log.txt pip-log.txt

View File

@ -55,7 +55,9 @@ deactivate
## First time run of pyinstaller to generate pismotek-remote.spec ## First time run of pyinstaller to generate pismotek-remote.spec
Windows uses `^` to continues a command on the next line. Windows uses `^` to continues a command on the next line.
``` ```
pyinstaller --onefile --windowed --icon remotedesktop.ico ^ pyi-makespec --onefile --windowed --icon remotedesktop.ico ^
--add-data "remotedesktop.ico:." --add-data "remotedesktop.ico:." ^
pismotek-remote.py --add-data "logo.png:." ^
--add-data "tvnserver.exe:." ^
pismotek-remote.py
``` ```

39
pismotek-remote.spec Normal file
View File

@ -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'],
)