mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-30 01:35:34 +00:00
Yabridge install script
This commit is contained in:
parent
f615d3e3db
commit
38aa9bbd1b
29
scripts/installers/yabridge-install.sh
Normal file
29
scripts/installers/yabridge-install.sh
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
|
||||||
|
# Automatic install script for yabridge an audio bridge for linux.
|
||||||
|
|
||||||
|
# Import library
|
||||||
|
source $(dirname ${BASH_SOURCE[0]})/install-lib.sh
|
||||||
|
|
||||||
|
program=yabridgectl
|
||||||
|
programVersion=$(yabridgectl --help | filterVersion)
|
||||||
|
url=$(curl -s https://github.com/robbert-vdh/yabridge/releases/ | grep .tar.gz \
|
||||||
|
| grep -v ubuntu | grep -Po '(?<=href=")[^"]*.tar.gz'| head -n 1)
|
||||||
|
url='https://github.com'$url
|
||||||
|
urlVersion=$(echo $url | filterVersion | head -n 1)
|
||||||
|
|
||||||
|
# Check if installed to the most recent version
|
||||||
|
checkUptoDate $program $programVersion $urlVersion
|
||||||
|
echo Installing $program $urlVersion
|
||||||
|
|
||||||
|
# Setting up and downloading package
|
||||||
|
mkdir -p ~/Downloads/installers/${program}
|
||||||
|
cd ~/Downloads/installers/${program}
|
||||||
|
wget $url
|
||||||
|
|
||||||
|
# Install package
|
||||||
|
tar -xvzf *${urlVersion}.tar.gz
|
||||||
|
rm -rd ~/.local/share/yabridge
|
||||||
|
mv ./yabridge ~/.local/share/
|
||||||
|
sudo rm /bin/yabridgectl
|
||||||
|
sudo ln -s ~/.local/share/yabridge/yabridgectl /bin/yabridgectl
|
@ -44,6 +44,7 @@ function manualUpdate {
|
|||||||
updateProgram reaper ~/.config/scripts/installers/reaper-install.sh &
|
updateProgram reaper ~/.config/scripts/installers/reaper-install.sh &
|
||||||
updateProgram /opt/resolve/bin/resolve ~/.config/scripts/installers/resolve-install.sh &
|
updateProgram /opt/resolve/bin/resolve ~/.config/scripts/installers/resolve-install.sh &
|
||||||
updateProgram /opt/keeweb/keeweb ~/dotfiles/scripts/installers/keeweb-install.sh &
|
updateProgram /opt/keeweb/keeweb ~/dotfiles/scripts/installers/keeweb-install.sh &
|
||||||
|
updateProgram yabridgectl ~/dotfiles/scripts/installers/yabridge-install.sh &
|
||||||
wait
|
wait
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user