mirror of
https://github.com/ptitSeb/box64.git
synced 2026-11-07 09:26:11 -10:00
* [STEAM] Minor refactoring - don't remove the deb files as they are already removed with the `rm -rf ./tmp/` - don't create ~/steam as it is already bound to be created with `mkdir -p ~/steam/tmp` - remove superfluous characters in path * [STEAM] Use Curl over WGet, as it's more common on most systems
29 lines
613 B
Bash
Executable File
29 lines
613 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# create necessary directories
|
|
mkdir -p ~/steam/tmp # makes both ~/steam and ~/steam/tmp in one cmd
|
|
cd ~/steam/tmp
|
|
|
|
# download latest deb and unpack
|
|
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
|
|
ar x steam.deb
|
|
tar xf data.tar.xz
|
|
|
|
# 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
|
|
export PROTON_USE_WOW64=1
|
|
export DBUS_FATAL_WARNINGS=0
|
|
~/steam/bin/steam $@' > steam
|
|
|
|
# make script executable and move
|
|
chmod +x steam
|
|
sudo mv steam /usr/local/bin/
|
|
|
|
echo "Script complete."
|