[!] Fix windowed mode
This commit is contained in:
parent
b33b067e75
commit
1ea733814b
@ -17,8 +17,8 @@ def get_pyinstaller_cmd():
|
|||||||
uac_admin = ""
|
uac_admin = ""
|
||||||
dwt = ""
|
dwt = ""
|
||||||
windows_mode = "--console"
|
windows_mode = "--console"
|
||||||
if windowed:
|
if windowed[0]:
|
||||||
windows_mode = "--windowed"
|
windows_mode = "-w"
|
||||||
add_data = [f'--add-data {path_fix + d}' for d in data]
|
add_data = [f'--add-data {path_fix + d}' for d in data]
|
||||||
if splash:
|
if splash:
|
||||||
splash_str = f' --splash {path_fix + splash} '
|
splash_str = f' --splash {path_fix + splash} '
|
||||||
|
@ -18,7 +18,7 @@ icon = "" # Читается из metadata
|
|||||||
splash = "" # Читается из metadata
|
splash = "" # Читается из metadata
|
||||||
data = []
|
data = []
|
||||||
|
|
||||||
windowed = False
|
windowed = [False]
|
||||||
|
|
||||||
path_fix = os.path.abspath(os.path.dirname(__file__)) + "/../../"
|
path_fix = os.path.abspath(os.path.dirname(__file__)) + "/../../"
|
||||||
|
|
||||||
|
7
main.py
7
main.py
@ -1,8 +1,6 @@
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
from dist_scripts import config
|
from dist_scripts import config
|
||||||
from dist_scripts import build
|
|
||||||
from dist_scripts import patchers
|
|
||||||
|
|
||||||
mode = "build"
|
mode = "build"
|
||||||
build_args = ""
|
build_args = ""
|
||||||
@ -17,7 +15,10 @@ if "ctk" in build_args:
|
|||||||
if "res" in build_args:
|
if "res" in build_args:
|
||||||
config.data.append("./src/resources;resources/") # Папка с ресурсами для UI и т.д.
|
config.data.append("./src/resources;resources/") # Папка с ресурсами для UI и т.д.
|
||||||
if "w" in build_args:
|
if "w" in build_args:
|
||||||
config.windowed = True
|
config.windowed[0] = True
|
||||||
|
|
||||||
|
from dist_scripts import build
|
||||||
|
from dist_scripts import patchers
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if mode == "build":
|
if mode == "build":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user