mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 09:15:34 +00:00
27 lines
851 B
Bash
Executable File
27 lines
851 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# Automatic install script for Reaper
|
|
|
|
# Import library
|
|
source $(dirname ${BASH_SOURCE[0]})/install-lib.sh
|
|
|
|
# Get download url
|
|
reaperVersion=$(head /opt/REAPER/whatsnew.txt | filterVersion)
|
|
reaperSite='https://www.reaper.fm'
|
|
downloadPage=$(curl -s "${reaperSite}/download.php")
|
|
urlVersion=$(echo "$downloadPage" | grep -A 2 'Linux x86_64' | filterVersion)
|
|
url="${reaperSite}/$(echo "$downloadPage" | grep linux_x86_64 | grep -Po '(?<=href=")[^"]*'| head -n 1)"
|
|
|
|
checkUptoDate Reaper $reaperVersion $urlVersion
|
|
|
|
# Setting up and downloading package
|
|
downloadPackage reaper $url $(basename $url)
|
|
|
|
# Install Reaper. Requires user input
|
|
tar -xf $(basename $url)
|
|
reaperDir=reaper_linux_x86_64
|
|
sudo sh ./$reaperDir/install-reaper.sh --install /opt --integrate-sys-desktop --usr-local-bin-symlink
|
|
|
|
# Delete extracted directory
|
|
rm -rd $reaperDir
|