From 5b4711be22869007869348132f34d5497c053ec0 Mon Sep 17 00:00:00 2001 From: amoh-godwin Date: Mon, 8 Mar 2021 17:08:51 +0000 Subject: [PATCH 1/2] Update .gitignore --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 19b7367..0d920e8 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,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 From dffccf32b1b15273848246dba2cb7d38b6d767eb Mon Sep 17 00:00:00 2001 From: amoh-godwin Date: Mon, 8 Mar 2021 17:15:14 +0000 Subject: [PATCH 2/2] Create PeterWebServer.spec --- PeterWebServer.spec | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 PeterWebServer.spec diff --git a/PeterWebServer.spec b/PeterWebServer.spec new file mode 100644 index 0000000..482dd39 --- /dev/null +++ b/PeterWebServer.spec @@ -0,0 +1,41 @@ +# -*- mode: python -*- +import os + +block_cipher = None + + +wd = os.path.realpath('.') +icon_path = os.path.join(wd, 'PeterIcon.ico') + +a = Analysis(['PeterWebServer.py'], + pathex=[wd], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=True, + name='Peterd', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + icon=icon_path, + console=True ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + name='PeterWebServer')