Ggh596 commited on
Commit
1075094
·
verified ·
1 Parent(s): c1c62ec

Upload 3 files

Browse files
installer/installer.py CHANGED
@@ -35,7 +35,7 @@ def install_dependencies():
35
  run_cmd("conda install -y -k git")
36
  run_cmd("git clone https://github.com/C0untFloyd/roop-unleashed.git")
37
  os.chdir(MY_PATH)
38
- run_cmd("git checkout ebf163acdb66de17abf408a86a72d00ddf49480c")
39
  # Installs dependencies from requirements.txt
40
  run_cmd("python -m pip install -r requirements.txt")
41
 
 
35
  run_cmd("conda install -y -k git")
36
  run_cmd("git clone https://github.com/C0untFloyd/roop-unleashed.git")
37
  os.chdir(MY_PATH)
38
+ run_cmd("git checkout 5bfafdc97a0c47b46ec83e6530a57399aaad75d7")
39
  # Installs dependencies from requirements.txt
40
  run_cmd("python -m pip install -r requirements.txt")
41
 
installer/macOSinstaller.sh ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # This script checks and installs all dependencies which are needed to run roop-unleashed. After that, it clones the repo.
4
+ # Execute this easily with /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/PJF16/roop-unleashed/master/installer/macOSinstaller.sh)
5
+
6
+ # Function to check if a command exists
7
+ command_exists() {
8
+ command -v "$1" >/dev/null 2>&1
9
+ }
10
+
11
+ echo "Starting check and installation process of dependencies for roop-unleashed"
12
+
13
+ # Check if Homebrew is installed
14
+ if ! command_exists brew; then
15
+ echo "Homebrew is not installed. Starting installation..."
16
+ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
17
+ else
18
+ echo "Homebrew is already installed."
19
+ fi
20
+
21
+ # Update Homebrew
22
+ echo "Updating Homebrew..."
23
+ brew update
24
+
25
+ # Check if Python 3.11 is installed
26
+ if brew list --versions python@3.11 >/dev/null; then
27
+ echo "Python 3.11 is already installed."
28
+ else
29
+ echo "Python 3.11 is not installed. Installing it now..."
30
+ brew install python@3.11
31
+ fi
32
+
33
+ # Check if python-tk@3.11 is installed
34
+ if brew list --versions python-tk@3.11 >/dev/null; then
35
+ echo "python-tk@3.11 is already installed."
36
+ else
37
+ echo "python-tk@3.11 is not installed. Installing it now..."
38
+ brew install python-tk@3.11
39
+ fi
40
+
41
+ # Check if ffmpeg is installed
42
+ if command_exists ffmpeg; then
43
+ echo "ffmpeg is already installed."
44
+ else
45
+ echo "ffmpeg is not installed. Installing it now..."
46
+ brew install ffmpeg
47
+ fi
48
+
49
+ # Check if git is installed
50
+ if command_exists git; then
51
+ echo "git is already installed."
52
+ else
53
+ echo "git is not installed. Installing it now..."
54
+ brew install git
55
+ fi
56
+
57
+ # Clone the repository
58
+ REPO_URL="https://github.com/C0untFloyd/roop-unleashed.git"
59
+ REPO_NAME="roop-unleashed"
60
+
61
+ echo "Cloning the repository $REPO_URL..."
62
+ git clone $REPO_URL
63
+
64
+ # Check if the repository was cloned successfully
65
+ if [ -d "$REPO_NAME" ]; then
66
+ echo "Repository cloned successfully. Changing into directory $REPO_NAME..."
67
+ cd "$REPO_NAME"
68
+ else
69
+ echo "Failed to clone the repository."
70
+ fi
71
+
72
+ echo "Check and installation process completed."
73
+
installer/windows_run.bat CHANGED
@@ -70,12 +70,8 @@ if "%ffmpeg_exists%" == "F" (
70
  echo Downloading ffmpeg from %FFMPEG_DOWNLOAD_URL% to %INSTALL_DIR%
71
  call curl -Lk "%FFMPEG_DOWNLOAD_URL%" > "%INSTALL_DIR%\ffmpeg.zip" || ( echo. && echo ffmpeg failed to download. && goto end )
72
  call powershell -command "Expand-Archive -Force '%INSTALL_DIR%\ffmpeg.zip' '%INSTALL_DIR%\'"
73
- cd "installer_files"
74
- setlocal EnableExtensions EnableDelayedExpansion
75
- for /f "tokens=*" %%f in ('dir /s /b /ad "ffmpeg\*"') do (
76
- ren "%%f" "ffmpeg"
77
- )
78
- endlocal
79
  setx PATH "%INSTALL_FFMPEG_DIR%\bin\;%PATH%"
80
  echo To use videos, you need to restart roop after this installation.
81
  cd ..
 
70
  echo Downloading ffmpeg from %FFMPEG_DOWNLOAD_URL% to %INSTALL_DIR%
71
  call curl -Lk "%FFMPEG_DOWNLOAD_URL%" > "%INSTALL_DIR%\ffmpeg.zip" || ( echo. && echo ffmpeg failed to download. && goto end )
72
  call powershell -command "Expand-Archive -Force '%INSTALL_DIR%\ffmpeg.zip' '%INSTALL_DIR%\'"
73
+ cd "%INSTALL_DIR%"
74
+ move ffmpeg-* ffmpeg
 
 
 
 
75
  setx PATH "%INSTALL_FFMPEG_DIR%\bin\;%PATH%"
76
  echo To use videos, you need to restart roop after this installation.
77
  cd ..