|
| 1 | +# -*- mode: python ; coding: utf-8 -*- |
| 2 | + |
| 3 | +# Configuration Wizard |
| 4 | + |
| 5 | +configure_a = Analysis( |
| 6 | + ['configure.py'], |
| 7 | + pathex=[], |
| 8 | + binaries=[], |
| 9 | + datas=[('res', 'res'), ('config.yaml', '.'), ('external', 'external')], |
| 10 | + hiddenimports=[], |
| 11 | + hookspath=[], |
| 12 | + hooksconfig={}, |
| 13 | + runtime_hooks=[], |
| 14 | + excludes=[], |
| 15 | + noarchive=False, |
| 16 | + optimize=0, |
| 17 | +) |
| 18 | +configure_pyz = PYZ(configure_a.pure) |
| 19 | + |
| 20 | +configure_exe = EXE( |
| 21 | + configure_pyz, |
| 22 | + configure_a.scripts, |
| 23 | + [], |
| 24 | + exclude_binaries=True, |
| 25 | + name='configure', |
| 26 | + debug=True, |
| 27 | + bootloader_ignore_signals=False, |
| 28 | + strip=False, |
| 29 | + upx=True, |
| 30 | + console=True, |
| 31 | + disable_windowed_traceback=False, |
| 32 | + argv_emulation=False, |
| 33 | + target_arch=None, |
| 34 | + codesign_identity=None, |
| 35 | + entitlements_file=None, |
| 36 | + icon=['res\\icons\\monitor-icon-17865\\icon.ico'], |
| 37 | + contents_directory='.', |
| 38 | + version='tools\\windows-installer\\pyinstaller-version-info.txt', |
| 39 | +) |
| 40 | + |
| 41 | +# System Monitor main program |
| 42 | + |
| 43 | +main_a = Analysis( |
| 44 | + ['main.py'], |
| 45 | + pathex=[], |
| 46 | + binaries=[], |
| 47 | + datas=[('res', 'res'), ('config.yaml', '.'), ('external', 'external')], |
| 48 | + hiddenimports=[], |
| 49 | + hookspath=[], |
| 50 | + hooksconfig={}, |
| 51 | + runtime_hooks=[], |
| 52 | + excludes=[], |
| 53 | + noarchive=False, |
| 54 | + optimize=0, |
| 55 | +) |
| 56 | +main_pyz = PYZ(main_a.pure) |
| 57 | + |
| 58 | +main_exe = EXE( |
| 59 | + main_pyz, |
| 60 | + main_a.scripts, |
| 61 | + [], |
| 62 | + exclude_binaries=True, |
| 63 | + name='main', |
| 64 | + debug=True, |
| 65 | + bootloader_ignore_signals=False, |
| 66 | + strip=False, |
| 67 | + upx=True, |
| 68 | + console=True, |
| 69 | + disable_windowed_traceback=False, |
| 70 | + argv_emulation=False, |
| 71 | + target_arch=None, |
| 72 | + codesign_identity=None, |
| 73 | + entitlements_file=None, |
| 74 | + icon=['res\\icons\\monitor-icon-17865\\icon.ico'], |
| 75 | + contents_directory='.', |
| 76 | + version='tools\\windows-installer\\pyinstaller-version-info.txt', |
| 77 | +) |
| 78 | + |
| 79 | +# Theme Editor |
| 80 | + |
| 81 | +editor_a = Analysis( |
| 82 | + ['theme-editor.py'], |
| 83 | + pathex=[], |
| 84 | + binaries=[], |
| 85 | + datas=[('res', 'res'), ('config.yaml', '.'), ('external', 'external')], |
| 86 | + hiddenimports=[], |
| 87 | + hookspath=[], |
| 88 | + hooksconfig={}, |
| 89 | + runtime_hooks=[], |
| 90 | + excludes=[], |
| 91 | + noarchive=False, |
| 92 | + optimize=0, |
| 93 | +) |
| 94 | +editor_pyz = PYZ(editor_a.pure) |
| 95 | + |
| 96 | +editor_exe = EXE( |
| 97 | + editor_pyz, |
| 98 | + editor_a.scripts, |
| 99 | + [], |
| 100 | + exclude_binaries=True, |
| 101 | + name='theme-editor', |
| 102 | + debug=True, |
| 103 | + bootloader_ignore_signals=False, |
| 104 | + strip=False, |
| 105 | + upx=True, |
| 106 | + console=True, |
| 107 | + disable_windowed_traceback=False, |
| 108 | + argv_emulation=False, |
| 109 | + target_arch=None, |
| 110 | + codesign_identity=None, |
| 111 | + entitlements_file=None, |
| 112 | + icon=['res\\icons\\monitor-icon-17865\\icon.ico'], |
| 113 | + contents_directory='.', |
| 114 | + version='tools\\windows-installer\\pyinstaller-version-info.txt', |
| 115 | +) |
| 116 | + |
| 117 | +# Common collect task |
| 118 | + |
| 119 | +coll = COLLECT( |
| 120 | + configure_exe, |
| 121 | + configure_a.binaries, |
| 122 | + configure_a.datas, |
| 123 | + main_exe, |
| 124 | + main_a.binaries, |
| 125 | + main_a.datas, |
| 126 | + editor_exe, |
| 127 | + editor_a.binaries, |
| 128 | + editor_a.datas, |
| 129 | + strip=False, |
| 130 | + upx=True, |
| 131 | + upx_exclude=[], |
| 132 | + name='turing-system-monitor', |
| 133 | +) |
0 commit comments