From beb94d9d07de1f85f7d3da39d6ac3a3204ea3e2d Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 3 Aug 2019 23:20:23 +0200 Subject: [PATCH] One-Dir spec files for Windows and Linux --- spec_files/Linux/Artemis_onedir.spec | 40 ++++++++++++++++++++++++++ spec_files/Windows/Artemis_onedir.spec | 40 ++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 spec_files/Linux/Artemis_onedir.spec create mode 100644 spec_files/Windows/Artemis_onedir.spec diff --git a/spec_files/Linux/Artemis_onedir.spec b/spec_files/Linux/Artemis_onedir.spec new file mode 100644 index 0000000..ff4700b --- /dev/null +++ b/spec_files/Linux/Artemis_onedir.spec @@ -0,0 +1,40 @@ +# -*- mode: python -*- + +block_cipher = None + +import glob, os + +data_file = [(f, '.') for f in glob.glob('*.[pu][yi]') if f != "artemis.py"] +data_file.append(('cacert.pem', '.')) + +a = Analysis(['artemis.py'], + pathex=[os.getcwd()], + binaries=[], + datas=data_file, + 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='Artemis', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + name='Artemis') diff --git a/spec_files/Windows/Artemis_onedir.spec b/spec_files/Windows/Artemis_onedir.spec new file mode 100644 index 0000000..fa7599b --- /dev/null +++ b/spec_files/Windows/Artemis_onedir.spec @@ -0,0 +1,40 @@ +# -*- mode: python -*- + +block_cipher = None + +import glob,os + +data_file = [(f, '.') for f in glob.glob('*.[pu][yi]') if f != "artemis.py"] +data_file.append(('cacert.pem', '.')) + +a = Analysis(['artemis.py'], + pathex=[os.getcwd()], + binaries=[], + datas=data_file, + 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='Artemis', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False , icon='Artemis3.ico') +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + name='Artemis')