From a684483785de10a64a7140bc8eb967f2f57fd1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Sun, 30 Sep 2018 18:47:55 +0200 Subject: [PATCH] Add pyinstaller spec --- .gitignore | 2 +- SimplePanoramaViewer.spec | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 SimplePanoramaViewer.spec diff --git a/.gitignore b/.gitignore index 00af7c8..c7180fb 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ wheels/ # 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/SimplePanoramaViewer.spec b/SimplePanoramaViewer.spec new file mode 100644 index 0000000..3c20fcc --- /dev/null +++ b/SimplePanoramaViewer.spec @@ -0,0 +1,39 @@ +# -*- mode: python -*- + +block_cipher = None + +added_files = [ + ( 'README.md', '.' ), + ( 'LICENSE.md', '.' ), + ( 'css', 'css' ), + ( 'html', 'html' ), + ( 'js', 'js' ) + ] + +a = Analysis(['SimplePanoramaViewer'], + pathex=['./SimplePanoramaViewer'], + binaries=[], + datas=added_files, + 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, + a.binaries, + a.zipfiles, + a.datas, + [], + name='SimplePanoramaViewer', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + runtime_tmpdir=None, + console=False )