chore: Update steam-install, make scripts executable
This commit is contained in:
Regular → Executable
Regular → Executable
+5
-3
@@ -1,10 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -xeo pipefail
|
||||||
|
|
||||||
# Installs the AppImage for steam
|
# Installs the AppImage for steam
|
||||||
|
|
||||||
APP=Steam-x86_64.AppImage
|
APP=Steam-x86_64.AppImage
|
||||||
NAME=steam
|
NAME=steam
|
||||||
URL="https://github.com/ivan-hc/Steam-appimage/releases/download/continuous/Steam-x86_64.AppImage"
|
URL="https://github.com/ivan-hc/Steam-appimage/releases/download/continuous/Steam-202310201446-x86_64.AppImage"
|
||||||
|
|
||||||
mkdir -p $HOME/.local/bin
|
mkdir -p $HOME/.local/bin
|
||||||
echo "export PATH=$PATH:$HOME/.local/bin" >> .bashrc
|
echo "export PATH=$PATH:$HOME/.local/bin" >> .bashrc
|
||||||
@@ -19,6 +21,6 @@ mv squashfs-root $HOME/$NAME
|
|||||||
cd $HOME/$NAME
|
cd $HOME/$NAME
|
||||||
ln -sf $(realpath AppRun) $HOME/.local/bin/$NAME
|
ln -sf $(realpath AppRun) $HOME/.local/bin/$NAME
|
||||||
desktop-file-install --dir="$HOME/.local/share/applications" $NAME.desktop
|
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
|
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
|
gio set "$HOME/.local/share/applications/$NAME.desktop" "metadata::trusted" true
|
||||||
rm -rf /tmp/$APP
|
rm -rf /tmp/$APP
|
||||||
|
|||||||
Reference in New Issue
Block a user