From b988524c2d9cb871a9c8fc339fe5dcc2a4f9304a Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 31 Jul 2024 23:25:11 +0800 Subject: [PATCH] droidcam rework --- install/droidcam | 31 ++++++++++++++++--------------- install/droidcam-obs | 6 +++--- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/install/droidcam b/install/droidcam index d903461..94b629a 100755 --- a/install/droidcam +++ b/install/droidcam @@ -1,21 +1,22 @@ #!/bin/bash -##makedesc: Install droidcam v1.8.2 +##makedesc: Install droidcam v1.9.0 +source `dirname $0`/../helpers || exit 255 # https://www.dev47apps.com/droidcam/linux/ -echo -echo "===============================================" -echo "Installing droidcam v1.8.2..." -echo "===============================================" -echo +title -mkdir -p ~/install/droidcam -wget -O /tmp/droidcam.zip https://files.dev47apps.net/linux/droidcam_1.8.2.zip -unzip -oq /tmp/droidcam.zip -d ~/install/droidcam -rm -rf /tmp/droidcam.zip -cd ~/install/droidcam && sudo ./install-client +mkdir -p "$HOME/install/droidcam" -echo -echo "Finish!" -echo "Don't forget to install android app: https://play.google.com/store/apps/developer?id=Dev47Apps" -echo +download "https://files.dev47apps.net/linux/droidcam_1.9.0.zip" "$HOME/install/droidcam.zip" && \ + unzip -oq "$HOME/install/droidcam.zip" -d "$HOME/install/droidcam" && \ + cd "$HOME/install/droidcam" && \ + sudo ./install-client + +[ $? = 0 ] && { + echo + success "droidcam installed!" + info "Don't forget to install the android app:" + info "https://play.google.com/store/apps/developer?id=Dev47Apps" + echo +} diff --git a/install/droidcam-obs b/install/droidcam-obs index 5c9d6f3..3ba0e05 100755 --- a/install/droidcam-obs +++ b/install/droidcam-obs @@ -15,11 +15,11 @@ echo # command -v "obs" >/dev/null 2>&1 || echo 'You need to install obs first!' command -v "obs-studio" >/dev/null 2>&1 || echo 'You need to install obs-studio first!' -mkdir -p ~/install/droidcam-obs +mkdir -p $HOMEinstall/droidcam-obs wget -O /tmp/droidcam-obs.zip https://files.dev47apps.net/obs/droidcam_obs_1.5.1_linux.zip -unzip -oq /tmp/droidcam-obs.zip -d ~/install/droidcam-obs +unzip -oq /tmp/droidcam-obs.zip -d $HOMEinstall/droidcam-obs rm -rf /tmp/droidcam-obs.zip -cd ~/install/droidcam-obs && ./install.sh +cd $HOMEinstall/droidcam-obs && ./install.sh sudo modprobe v4l2loopback video_nr=2 card_label="OBS Virtual Camera" echo