Skip to content

Commit

Permalink
add theoretical arm support
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Sep 10, 2024
1 parent 97cc1fa commit 79ae235
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,37 @@ jobs:
with:
name: REAL-Video-Enhancer-2.0-MacOS_x86_64.zip
path: REAL-Video-Enhancer-2.0-MacOS_x86_64.zip
build-MacOS_arm64:
runs-on: macos-14
permissions: write-all
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.10.8

- name: Install Python Dependencies
run: |
python3 -m pip install -r requirements.txt
- name: Build
run: python3 build.py --build_exe

- name: copy backend
run: cp -r backend dist/

- name: compress archive
run: zip -r REAL-Video-Enhancer-2.0-MacOS_arm64.zip dist/

- name: Save Archive as artifact
uses: actions/upload-artifact@v3
with:
name: REAL-Video-Enhancer-2.0-MacOS_arm64.zip
path: REAL-Video-Enhancer-2.0-MacOS_arm64.zip

Release:
needs: [build-Windows, build-Linux, build-MacOS]
needs: [build-Windows, build-Linux, build-MacOS, build-MacOS_arm64]
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -137,6 +165,7 @@ jobs:
artifacts/REAL-Video-Enhancer-2.0-Windows.zip/REAL-Video-Enhancer-2.0-Windows.zip
artifacts/REAL-Video-Enhancer-2.0-Linux.zip/REAL-Video-Enhancer-2.0-Linux.zip
artifacts/REAL-Video-Enhancer-2.0-MacOS_x86_64.zip/REAL-Video-Enhancer-2.0-MacOS_x86_64.zip
artifacts/REAL-Video-Enhancer-2.0-MacOS_arm64.zip/REAL-Video-Enhancer-2.0-MacOS_arm64.zip
Expand Down
9 changes: 5 additions & 4 deletions src/DownloadDeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
)
from .ui.QTcustom import DownloadProgressPopup, DisplayCommandOutputPopup
import os
import subprocess
import shutil
import urllib.request
from platform import machine


class DownloadDependencies:
Expand Down Expand Up @@ -70,7 +68,10 @@ def downloadPython(self):
case "win32":
link += "x86_64-pc-windows-msvc-install_only.tar.gz"
case "darwin":
link += "x86_64-apple-darwin-install_only.tar.gz"
if machine() == "arm64":
link += "aarch64-apple-darwin-install_only.tar.gz"
else:
link += "x86_64-apple-darwin-install_only.tar.gz"
# probably can add macos support later
printAndLog("Downloading Python")
DownloadProgressPopup(
Expand Down

0 comments on commit 79ae235

Please sign in to comment.