[+] Window support
This commit is contained in:
@@ -16,6 +16,9 @@ def get_pyinstaller_cmd():
|
||||
splash_str = ""
|
||||
uac_admin = ""
|
||||
dwt = ""
|
||||
windows_mode = "--console"
|
||||
if windowed:
|
||||
windows_mode = "--windowed"
|
||||
add_data = [f'--add-data {path_fix + d}' for d in data]
|
||||
if splash:
|
||||
splash_str = f' --splash {path_fix + splash} '
|
||||
@@ -26,7 +29,7 @@ def get_pyinstaller_cmd():
|
||||
if admin:
|
||||
uac_admin = " --uac-admin "
|
||||
pyinstaller_cmd = \
|
||||
(f'pyinstaller --noconfirm --onedir --console --clean '
|
||||
(f'pyinstaller --noconfirm --onedir {windows_mode} --clean '
|
||||
f'--icon {path_fix + icon} --version-file {path_fix + metadata_path_txt}'
|
||||
f'{splash_str}{add_data}{dwt}{uac_admin}'
|
||||
f'--workpath {workpath} --distpath {distpath} --specpath {specpath} '
|
||||
|
||||
@@ -18,6 +18,8 @@ icon = "" # Читается из metadata
|
||||
splash = "" # Читается из metadata
|
||||
data = []
|
||||
|
||||
windowed = False
|
||||
|
||||
path_fix = os.path.abspath(os.path.dirname(__file__)) + "/../../"
|
||||
|
||||
contents_directory= "."
|
||||
|
||||
Reference in New Issue
Block a user