Files
dm-scripts/steam-install
T
BachoSeven 212d9013df Update 'steam-install'
fix binary location
2023-07-22 14:49:55 +00:00

24 lines
750 B
Bash

#!/bin/sh
# Installs the AppImage for steam
APP=Steam-x86_64.AppImage
NAME=steam
URL="https://github.com/ivan-hc/Steam-appimage/releases/download/continuous/Steam-x86_64.AppImage"
mkdir -p $HOME/.local/bin
echo "export PATH=$PATH:$HOME/.local/bin" >> .bashrc
echo "export PATH=$PATH:$HOME/.local/bin" >> .bash_profile
cd /tmp
curl -LO $URL
chmod +x $APP
./$APP --appimage-extract
mv squashfs-root $HOME/$NAME
cd $HOME/$NAME
ln -sf $(realpath AppRun) $HOME/.local/bin/$NAME
desktop-file-install --dir="$HOME/.local/share/applications" $NAME.desktop
sed -i "s|Exec=$NAME|Exec=$HOME/.local/bin/$NAME|g" $HOME/.local/share/applications/$NAME.desktop
gio set "$HOME/.local/share/applications/$NAME.desktop" "metadata::trusted" true
rm -rf /tmp/$APP