33block_cipher = None
44
55a = Analysis (
6- ['PICA_Launcher .py' ],
6+ ['PICA_Launcher_V4 .py' ], # CORRECTED: Use the actual script name
77 pathex = [],
88 binaries = [],
99 datas = [
10- ('_assets' , '_assets' ),
11- ('README' , 'README' ),
12- ('LICENSE' , 'LICENSE' ),
10+ # Folders to be included as-is
1311 ('Delta_mode' , 'Delta_mode' ),
1412 ('Keithley_2400' , 'Keithley_2400' ),
1513 ('Keithley_2400_Keithley_2182' , 'Keithley_2400_Keithley_2182' ),
1614 ('Keithley_6517B' , 'Keithley_6517B' ),
1715 ('Lakeshore_350_340' , 'Lakeshore_350_340' ),
1816 ('LCR_Keysight_E4980A' , 'LCR_Keysight_E4980A' ),
19- ('Lock_in_amplifier' , 'Lock_in_amplifier' )
17+ ('Lock_in_amplifier' , 'Lock_in_amplifier' ),
18+ ('Utilities' , 'Utilities' ),
19+ ('_assets' , '_assets' ),
20+
21+ # Files from the root directory to be placed in the root of the bundle
22+ ('LICENSE' , '.' ),
23+ ('README.md' , '.' ),
24+ ('Updates.md' , '.' )
2025 ],
2126 hiddenimports = ['pyvisa_py' ],
2227 hookspath = [],
@@ -33,21 +38,29 @@ pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
3338exe = EXE (
3439 pyz ,
3540 a .scripts ,
36- a .binaries ,
37- a .zipfiles ,
38- a .datas ,
3941 [],
42+ exclude_binaries = True ,
4043 name = 'PICA_Launcher' ,
4144 debug = False ,
4245 bootloader_ignore_signals = False ,
4346 strip = False ,
4447 upx = True ,
45- upx_exclude = [],
46- runtime_tmpdir = None ,
4748 console = False ,
4849 disable_windowed_traceback = False ,
4950 argv_emulation = False ,
5051 target_arch = None ,
5152 codesign_identity = None ,
5253 entitlements_file = None ,
53- )
54+ # Optional: Add an icon for your application
55+ # icon='_assets/LOGO/your_icon.ico'
56+ )
57+ coll = COLLECT (
58+ exe ,
59+ a .binaries ,
60+ a .zipfiles ,
61+ a .datas ,
62+ strip = False ,
63+ upx = True ,
64+ upx_exclude = [],
65+ name = 'PICA_Launcher' ,
66+ )
0 commit comments