|
|
@ -43,6 +43,11 @@ done
|
|
|
|
function install_macos(){
|
|
|
|
function install_macos(){
|
|
|
|
if [ ! command -v brew &> /dev/null ]; then
|
|
|
|
if [ ! command -v brew &> /dev/null ]; then
|
|
|
|
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
|
|
|
|
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
|
|
|
|
|
|
|
|
if [[ uname -m == "x86_64" ]]; then
|
|
|
|
|
|
|
|
echo "export PATH=/usr/local/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
|
|
|
|
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Homebrew is already installed"
|
|
|
|
echo "Homebrew is already installed"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
@ -139,8 +144,8 @@ function install_python_dep(){
|
|
|
|
function install_playwright(){
|
|
|
|
function install_playwright(){
|
|
|
|
echo "Installing playwright"
|
|
|
|
echo "Installing playwright"
|
|
|
|
cd RedditVideoMakerBot
|
|
|
|
cd RedditVideoMakerBot
|
|
|
|
playwright install
|
|
|
|
python3 -m playwright install
|
|
|
|
playwright install-deps
|
|
|
|
python3 -m playwright install-deps
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
install_deps(){
|
|
|
|
install_deps(){
|
|
|
|