-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·56 lines (51 loc) · 2.84 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·56 lines (51 loc) · 2.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/env bash
LOCATION="$(dirname "$(readlink -f $0)")"
# Download OBS Studio AppImage
if [[ ! -e "$LOCATION/OBS-Studio.AppImage" ]]; then
echo "Downloading OBS Studio..."
wget "https://github.com/pkgforge-dev/OBS-Studio-AppImage/releases/download/32.1.2-7%402026-07-02_1783010240/OBS_Studio-32.1.2-7-anylinux-x86_64.AppImage" -O "$LOCATION/OBS-Studio.AppImage"
chmod +x "$LOCATION/OBS-Studio.AppImage"
else
echo "OBS Studio already downloaded. If you want to reinstall or update it, delete OBS-Studio.AppImage"
fi
# Download Application Audio Source plugin
if [[ ! -e "$LOCATION/config/obs-studio/plugins/linux-pipewire-audio" ]]; then
echo "Downloading Application Audio Source plugin..."
mkdir -p "$LOCATION/config/obs-studio/plugins"
pushd "$LOCATION/config/obs-studio/plugins"
wget "https://github.com/dimtpap/obs-pipewire-audio-capture/releases/download/1.2.1/linux-pipewire-audio-1.2.1.tar.gz" -O "linux-pipewire-audio.tar.gz"
tar -xzf "linux-pipewire-audio.tar.gz"
rm "linux-pipewire-audio.tar.gz"
popd
else
echo "Application Audio Source plugin already downloaded. If you want to reinstall or update it, delete config/obs-studio/plugins/linux-pipewire-audio"
fi
# Install config files
if [[ ! -e "$LOCATION/config/obs-studio/global.ini" ]]; then
echo "Installing basic config files"
DESTINATION="$LOCATION/config/obs-studio/global.ini"
cp "$LOCATION/config/obs-studio/global.ini.in" "$DESTINATION"
sed -i "s@[\$][\$]INSTALLDIR[\$][\$]@$LOCATION@g" "$DESTINATION"
else
echo "Basic config files already installed. If you want to reinstall or update them, delete config/obs-studio/global.ini"
fi
if [[ ! -e "$LOCATION/config/obs-studio/basic/profiles/RFVR_Nvidia/basic.ini" ]]; then
echo "Installing profile config files"
DESTINATION="$LOCATION/config/obs-studio/basic/profiles/RFVR_Nvidia/basic.ini"
cp "$LOCATION/config/obs-studio/basic/profiles/RFVR_Nvidia/basic.ini.in" "$DESTINATION"
sed -i "s@[\$][\$]INSTALLDIR[\$][\$]@$LOCATION@g" "$DESTINATION"
else
echo "Profile config files already installed. If you want to reinstall or update them, delete config/obs-studio/basic/profiles/RFVR_Nvidia/basic.ini"
fi
if [[ ! -e "$LOCATION/config/obs-studio/basic/scenes/Refraction_OBS.json" ]]; then
echo "Installing scene config files"
DESTINATION="$LOCATION/config/obs-studio/basic/scenes/Refraction_OBS.json"
cp "$LOCATION/config/obs-studio/basic/scenes/Refraction_OBS.json.in" "$DESTINATION"
sed -i "s@[\$][\$]INSTALLDIR[\$][\$]@$LOCATION@g" "$DESTINATION"
else
echo "Scene config files already installed. If you want to reinstall or update them, delete config/obs-studio/basic/scenes/Refraction_OBS.json"
fi
echo "Installing launcher file"
DESTINATION="$HOME/.local/share/applications/Refraction OBS.desktop"
cp "$LOCATION/Refraction OBS.desktop.in" "$DESTINATION"
sed -i "s@[\$][\$]INSTALLDIR[\$][\$]@$LOCATION@g" "$DESTINATION"