Skip to content

Commit

Permalink
update build process
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Nov 11, 2024
1 parent 712631c commit c89fc42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ jobs:
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
- name: Build
run: python3 build.py --build_exe

- name: copy backend
run: |
mv dist/ bin/
cp -r backend bin/

- name: compress archive
run: |
Expand Down Expand Up @@ -58,9 +52,6 @@ jobs:
python3 -m pip install -r requirements.txt
- name: Build
run: python3 build.py --build_exe

- name: copy backend
run: cp -r backend dist/REAL-Video-Enhancer/

- name: compress archive
run: |
Expand Down
9 changes: 8 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,16 @@ def build_executable():
"cx_Freeze",
"REAL-Video-Enhancer.py",
"--target-dir",
"dist",
"bin",
]
subprocess.run(command)

def copy_backend():
print("Copying backend")
if getPlatform() == "win32":
os.system("cp -r backend dist/REAL-Video-Enhancer/")
if getPlatform() == "linux":
os.system("cp -r backend bin/")

def clean():
print("Cleaning up")
Expand Down Expand Up @@ -136,3 +142,4 @@ def checkIfExeExists(exe):
if len(sys.argv) > 1:
if sys.argv[1] == "--build_exe":
build_executable()
copy_backend()
2 changes: 1 addition & 1 deletion src/DownloadDeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def downloadBackend(self, tag):

if not os.path.exists(backendDirectory()):
print(str(backendDirectory()) + " Does not exist!")
backend_url = "https://github.com/TNTwise/real-video-enhancer-models/releases/download/models/backend-v2.0.5.tar.gz"
backend_url = "https://github.com/TNTwise/real-video-enhancer-models/releases/download/models/backend-v2.1.0.tar.gz"
main_zip = os.path.join(currentDirectory(), "backend.tar.gz")

printAndLog("Downloading backend")
Expand Down

0 comments on commit c89fc42

Please sign in to comment.