this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix some SteamOS package installation issues

+32 -10
+32 -10
.local/bin/steamos-restore-host-packages
··· 1 1 #!/usr/bin/env fish 2 2 3 + set aur_package_list \ 4 + nordvpn-bin \ 5 + touchegg 6 + 3 7 set package_list \ 4 8 kcm-wacomtablet \ 5 - nordvpn-bin \ 6 - touchegg \ 7 9 libratbag 8 10 9 11 function install_yay ··· 19 21 20 22 function build_packages 21 23 echo "Downloading + building packages..." 22 - for pkg in $package_list 24 + for pkg in $aur_package_list 23 25 yay -G --noconfirm $pkg 24 26 pushd $pkg 25 - makepkg -s --noconfirm 27 + if ! makepkg -s --noconfirm 28 + echo (set_color yellow)"WARNING:"(set_color normal)" failed to build $pkg" 29 + end 26 30 popd 27 31 end 28 32 end ··· 58 62 echo "Disabling read-only filesystem..." 59 63 sudo steamos-readonly disable 60 64 61 - echo "Installing packages..." 65 + echo "Installing AUR packages..." 66 + # NOTE: we use --overwrite since there might be some leftover /var/, /etc/ 67 + # type files from previous installations. This might require some additional 68 + # login / configuration after reinstalling but is probably safer in the long run 69 + 62 70 cd $build_dir 63 - for pkg in $package_list 71 + for pkg in $aur_package_list 64 72 pushd $pkg 65 - if ! sudo pacman -U --noconfirm *.tar.zst 73 + if ! sudo pacman -U --overwrite '*' --noconfirm *.tar.zst 66 74 echo (set_color yellow)"WARNING:"(set_color normal)" failed to install $pkg!" 67 75 end 68 76 popd 69 77 end 70 78 79 + echo "Installing other packages..." 80 + for pkg in $package_list 81 + if ! sudo pacman -S --overwrite '*' --noconfirm $pkg 82 + echo (set_color yellow)"WARNING:"(set_color normal)" failed to install $pkg!" 83 + end 84 + end 85 + 71 86 echo "Installing SMI USB display driver..." 72 87 # https://github.com/ian-h-chamberlain/steamos-smiusbdisplay-drivers/blob/main/README.md#install 73 88 pushd steamos-smiusbdisplay-drivers 74 - sudo pacman -S dkms 89 + sudo pacman -S --noconfirm dkms 75 90 76 91 set kernel (uname -r) 77 92 set evdi_version (printf *.tar.gz | cut -d- -f2) ··· 81 96 sudo dkms install evdi/$evdi_version -k $kernel 82 97 83 98 # Install the built SMI usb driver 84 - cd smiusbdisplay-driver-bin 85 - if ! sudo pacman -U --noconfirm *.tar.zst 99 + pushd evdi-steamos-dkms 100 + if ! sudo pacman -U --overwrite '*' --noconfirm *.tar.zst 101 + echo (set_color yellow)"WARNING:"(set_color normal)" failed to install evdi!" 102 + end 103 + popd 104 + 105 + pushd smiusbdisplay-driver-bin 106 + if ! sudo pacman -U --overwrite '*' --noconfirm *.tar.zst 86 107 echo (set_color yellow)"WARNING:"(set_color normal)" failed to install SMI USB display driver!" 87 108 end 109 + popd 88 110 89 111 popd 90 112