Skip to content

Commit

Permalink
Update build.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise authored Dec 26, 2024
1 parent 822d14c commit e793f39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/")

Expand Down

0 comments on commit e793f39

Please sign in to comment.