From e793f39246d400f3eede36f26c770e2bbf73071c Mon Sep 17 00:00:00 2001 From: TNTwise <77559100+TNTwise@users.noreply.github.com> Date: Wed, 25 Dec 2024 20:45:18 -0600 Subject: [PATCH] Update build.py --- build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index a118492e..5476f522 100644 --- a/build.py +++ b/build.py @@ -138,7 +138,12 @@ def build_executable(): def copy_backend(): print("Copying backend") if getPlatform() == "win32": - os.system('xcopy "./backend" "./dist/REAL-Video-Enhancer/" /E /I') + try: + os.system("cp -r backend dist/REAL-Video-Enhancer/") + except Exception: + pass + if not os.path.exists(r"dist\\REAL-Video-Enhancer\\backend"): + os.system('xcopy "./backend" "./dist/REAL-Video-Enhancer/" /E /I') if getPlatform() == "linux": os.system("cp -r backend bin/")