File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -123,14 +123,7 @@ _lang_ () {
123123}
124124
125125# system detection
126- is_arch_cachy () {
127- if [ "$ID" == "arch" ] || [ "$ID" == "cachyos" ] || [[ "$ID_LIKE" =~ "arch" ]] || [[ "$ID_LIKE" =~ "archlinux" ]]; then
128- return 0
129- else
130- return 1
131- fi
132- }
133- is_arch_nocachy () {
126+ is_arch () {
134127 if [[ ("$ID" == "arch" || "$ID_LIKE" =~ "arch" || "$ID_LIKE" =~ "archlinux") && "$ID" != "cachyos" ]]; then
135128 return 0
136129 else
Original file line number Diff line number Diff line change @@ -16,18 +16,26 @@ source "$SCRIPT_DIR/libs/lang/${langfile}.lib"
1616sudo_rq
1717if is_fedora; then
1818 sudo dnf copr enable brycensranch/gpu-screen-recorder-git
19- _packages=(gpu-screen-recorder-ui)
19+ _packages=(gpu-screen-recorder-ui libva-intel-media-driver )
2020elif is_ostree; then
2121 wget " https://copr.fedorainfracloud.org/coprs/brycensranch/gpu-screen-recorder-git/repo/fedora-$( rpm -E %fedora) /brycensranch-gpu-screen-recorder-git-fedora-$( rpm -E %fedora) .repo"
2222 sudo install -o 0 -g 0 " brycensranch-gpu-screen-recorder-git-fedora-$( rpm -E %fedora) .repo" " /etc/yum.repos.d/brycensranch-gpu-screen-recorder-git-fedora-$( rpm -E %fedora) .repo"
2323 rm " brycensranch-gpu-screen-recorder-git-fedora-$( rpm -E %fedora) .repo"
24- _packages=(gpu-screen-recorder-ui)
24+ _packages=(gpu-screen-recorder-ui libva-intel-media-driver )
2525elif is_suse; then
26- _packages=(gpu-screen-recorder)
26+ _packages=(gpu-screen-recorder intel-media-driver )
2727elif is_debian || is_ubuntu; then
2828 sudo bash -c " $( wget -q https://pacstall.dev/q/install -O -) "
2929 pacstall -I gpu-screen-recorder
30- exit 0
30+ _packages=(intel-media-driver)
31+ elif is_arch || is_cachy; then
32+ git clone https://aur.archlinux.org/gpu-screen-recorder.git
33+ cd gpu-screen-recorder || exit 1
34+ makepkg -d
35+ sudo pacman -U --noconfirm gpu-screen-recorder-* .tar.zst
36+ cd ..
37+ rm -rf gpu-screen-recorder
38+ _packages=(intel-media-driver)
3139fi
3240_install_
3341zeninf " $msg018 "
Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ obs_pipe () {
2727sleep 1
2828sudo_rq
2929_packages=(obs-studio wireplumber)
30+ if is_fedora || is_ostree; then
31+ _packages+=(libva-intel-media-driver)
32+ elif is_suse || is_debian || is_ubuntu || is_arch || is_cachy; then
33+ _packages+=(intel-media-driver)
34+ fi
3035_install_
3136sleep 1
3237obs_pipe
You can’t perform that action at this time.
0 commit comments