DistScripts/main.py
2025-04-01 15:46:46 +03:00

28 lines
711 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import sys
from dist_scripts import config
mode = "build"
build_args = ""
args = sys.argv
if len(args) > 1:
mode = args[1]
if len(args) > 2:
build_args = args[2:]
if "ctk" in build_args:
config.data.append("./.venv/Lib/site-packages/customtkinter;customtkinter/") # Папка с библиотекой customtkinter
if "res" in build_args:
config.data.append("./src/resources;resources/") # Папка с ресурсами для UI и т.д.
if "w" in build_args:
config.windowed[0] = True
from dist_scripts import build
from dist_scripts import patchers
if __name__ == '__main__':
if mode == "build":
build()
elif mode == "core":
patchers.patch_core_build()