mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-27 08:50:28 +00:00
31 lines
619 B
Bash
Executable File
31 lines
619 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# create necessary directories
|
|
mkdir -p ~/steam
|
|
mkdir -p ~/steam/tmp
|
|
cd ~/steam/tmp
|
|
|
|
# download latest deb and unpack
|
|
wget https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
|
|
ar x steam.deb
|
|
tar xf data.tar.xz
|
|
|
|
# remove deb archives, not needed anymore
|
|
rm ./*.tar.xz ./steam.deb
|
|
|
|
# move deb contents to steam folder
|
|
mv ./usr/* ../
|
|
cd ../ && rm -rf ./tmp/
|
|
|
|
# create run script
|
|
echo "#!/bin/bash
|
|
export STEAMOS=1
|
|
export STEAM_RUNTIME=1
|
|
~/steam/bin/steam steam://open/minigameslist" > steam
|
|
|
|
# make script executable and move
|
|
chmod +x steam
|
|
sudo mv steam /usr/local/bin/
|
|
|
|
echo "Script complete."
|