You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Bash
		
	
#!/bin/bash
 | 
						|
 | 
						|
DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")"
 | 
						|
 | 
						|
function error {
 | 
						|
  echo -e "\\e[91m$1\\e[39m"
 | 
						|
  exit 1
 | 
						|
}
 | 
						|
 | 
						|
"${DIRECTORY}/pkg-install" "libappindicator1 libnm0" "$(dirname "$0")" || exit 1
 | 
						|
 | 
						|
#install box86
 | 
						|
if ! command -v box86 || [ "$(cat "${DIRECTORY}/data/status/Box86" 2>/dev/null)" != 'installed' ];then
 | 
						|
  echo 'Installing box86...'
 | 
						|
  "${DIRECTORY}/manage" install Box86 || error "Box86 failed to install somehow!"
 | 
						|
  if ! command -v box86 ;then
 | 
						|
    error "Box86 executable does not exist!"
 | 
						|
  else
 | 
						|
    echo "installed" > "${DIRECTORY}/data/status/Box86"
 | 
						|
  fi
 | 
						|
fi
 | 
						|
 | 
						|
echo "Downloading steam.deb"
 | 
						|
wget https://steamcdn-a.akamaihd.net/client/installer/steam.deb || error "Failed to download steam.deb!"
 | 
						|
 | 
						|
sudo dpkg -i ~/steam.deb || error "dpkg failed to install steam.deb!"
 | 
						|
 | 
						|
rm ~/steam.deb
 | 
						|
 | 
						|
echo "Editing steam script to run on Raspberry Pi..."
 | 
						|
sudo sed -i 's/set -e/set -e\nexport STEAMOS=1\nexport STEAM_RUNTIME=1/' /usr/lib/steam/bin_steam.sh
 | 
						|
 | 
						|
echo "Creating a Steam config file so it will launch in Small Mode..."
 | 
						|
mkdir -p ~/.local/share/Steam/config
 | 
						|
wget https://raw.githubusercontent.com/Botspot/Steam-RPi/main/DialogConfig.vdf -O ~/.local/share/Steam/config/DialogConfig.vdf
 | 
						|
 | 
						|
exit 0
 |