-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.py
More file actions
32 lines (29 loc) · 710 Bytes
/
Copy pathbuild.py
File metadata and controls
32 lines (29 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Build script for creating standalone executable
"""
import PyInstaller.__main__
import os
import shutil
# Clean previous builds
if os.path.exists('build'):
shutil.rmtree('build')
if os.path.exists('dist'):
shutil.rmtree('dist')
# PyInstaller arguments
PyInstaller.__main__.run([
'pc_cleaner_app.py',
'--name=PCCleanerTool',
'--onefile',
'--windowed',
'--icon=resources/icon.png',
'--add-data=resources;resources',
'--hidden-import=customtkinter',
'--hidden-import=PIL',
'--hidden-import=psutil',
'--hidden-import=requests',
'--clean',
])
print("\n" + "="*50)
print("Build complete!")
print("Executable location: dist/PCCleanerTool.exe")
print("="*50)