|
35 | 35 |
|
36 | 36 | # Running PyInstaller to build the application |
37 | 37 | PyInstaller.__main__.run([ |
38 | | - 'process-governor.py', # Source script file |
39 | | - '--clean', # Clean previous builds |
40 | | - '--noconfirm', # No confirmation when deleting dist directory |
41 | | - '--onedir', # Build the app in one directory |
42 | | - '--uac-admin', # Request admin rights on launch |
43 | | - '--hide-console', 'hide-early', # Hide the console on startup |
| 38 | + 'process-governor.py', # Source script file |
| 39 | + '--clean', # Clean previous builds |
| 40 | + '--noconfirm', # No confirmation when deleting dist directory |
| 41 | + '--onedir', # Build the app in one directory |
| 42 | + '--uac-admin', # Request admin rights on launch |
| 43 | + '--hide-console', 'hide-early', # Hide the console on startup |
44 | 44 | '--add-data', './resources/*;./resources', # Add additional resources |
45 | | - '--contents-directory', 'scripts', # Directory for Python and app scripts in the built package |
46 | | - '--icon', 'resources/app.ico', # Application icon |
47 | | - '--debug', 'noarchive', # Disables bundling of application scripts inside the exe |
48 | | - '--name', APP_NAME, # Name of the executable file |
49 | | - '--version-file', VERSION_FILE, # Path to the version file |
50 | | - '--distpath', DIST, # Directory to save the built application |
| 45 | + '--contents-directory', 'scripts', # Directory for Python and app scripts in the built package |
| 46 | + '--icon', 'resources/app.ico', # Application icon |
| 47 | + '--debug', 'noarchive', # Disables bundling of application scripts inside the exe |
| 48 | + '--name', APP_NAME, # Name of the executable file |
| 49 | + '--version-file', VERSION_FILE, # Path to the version file |
| 50 | + '--distpath', DIST, # Directory to save the built application |
| 51 | + '--collect-all', 'tksvg', |
51 | 52 | ]) |
52 | 53 |
|
53 | 54 | # Creating an archive of the built application |
|
0 commit comments