mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-24 13:39:48 +08:00
31 lines
816 B
Bash
31 lines
816 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
|
|
|
cd "$SCRIPT_DIR" || exit 1
|
|
|
|
cd .. || exit 1
|
|
|
|
WORKFLOW=${WORKFLOW:-"false"}
|
|
TARGETPLATFORM=${TARGETPLATFORM:-"linux/amd64"}
|
|
|
|
if [ "$WORKFLOW" = "true" ]; then
|
|
WGET_CMD="wget --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404"
|
|
else
|
|
WGET_CMD="wget -nv --tries=25 --wait=5 --read-timeout=40 --retry-on-http-error=404"
|
|
fi
|
|
|
|
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then
|
|
eval "$WGET_CMD -O anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-x86_64.sh"
|
|
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then
|
|
eval "$WGET_CMD -O anaconda.sh https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Linux-aarch.sh"
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
bash anaconda.sh -b -p "$HOME/anaconda3"
|
|
|
|
rm anaconda.sh
|