From e8c4baa9d2bd6dc9e8bbbb3018a880fe591a9595 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Sat, 22 Jul 2023 14:28:15 +0000 Subject: [PATCH] Add 'steam-install' --- steam-install | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 steam-install diff --git a/steam-install b/steam-install new file mode 100644 index 0000000..3eff5ea --- /dev/null +++ b/steam-install @@ -0,0 +1,21 @@ +#!/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" + +cd /tmp +curl -LO $URL +chmod +x $APP +./$APP --appimage-extract +cd squashfs-root +mkdir -p $HOME/.local/bin +echo "export PATH=$PATH:$HOME/.local/bin" >> .bashrc +echo "export PATH=$PATH:$HOME/.local/bin" >> .bash_profile +ln -sf $(realpath AppRun) $HOME/.local/bin/$NAME +desktop-file-install --dir="$HOME/.local/share/applications" $NAME.desktop +cd $HOME/.local/share/applications +chmod +x $NAME.desktop +gio set $NAME.desktop "metadata::trusted" true \ No newline at end of file