This commit is contained in:
Kentai Radiquum 2025-05-04 06:35:30 +05:00
parent 5581e2905e
commit 5be021789b
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,9 @@ if __name__ == "__main__":
os.makedirs(OUT_DIR) os.makedirs(OUT_DIR)
# TODO: handle multiple package managers line npm(node), deno, yarn
# TODO?: install node deps automatically
if not args.no_rebuild: if not args.no_rebuild:
build = subprocess.call(["bun", "run", "build"], cwd="./gui", shell=True) build = subprocess.call(["bun", "run", "build"], cwd="./gui", shell=True)
if build != 0: if build != 0:

3
dev.py
View file

@ -7,6 +7,9 @@ if __name__ == "__main__":
environment = os.environ.copy() environment = os.environ.copy()
environment["is_dev"] = "True" environment["is_dev"] = "True"
# TODO: handle multiple package managers line npm(node), deno, yarn
# TODO?: install node deps automatically
gui_proc = subprocess.Popen(["bun", "run", "dev"], cwd="./gui", env=environment, shell = True) gui_proc = subprocess.Popen(["bun", "run", "dev"], cwd="./gui", env=environment, shell = True)
app_proc = subprocess.Popen(["python", "main.py"], cwd="./src", env=environment, shell = True) app_proc = subprocess.Popen(["python", "main.py"], cwd="./src", env=environment, shell = True)