From f7212849cb542efe1526a8537c01c9f70d852aa1 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Fri, 20 Jan 2023 19:27:36 -0500 Subject: [PATCH] Started updates on the gaming setup script. There are some weird problems that I am trying to figure out, so I'm not sure it will work quite yet, but getting closer. --- .includes/gaming.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.includes/gaming.sh b/.includes/gaming.sh index ffdf052..9df3a13 100755 --- a/.includes/gaming.sh +++ b/.includes/gaming.sh @@ -11,7 +11,7 @@ yay -Syu --noconfirm install_package cabextract box86 dos2unix p7zip unzip xdotool # Download and install wine wineFile="$(mktemp)" -wget -O "$wineFile" "$wineURL" +curl --output "$wineFile" "$wineURL" # Create wine directory sudo mkdir -p /opt/wine pushd /opt/wine @@ -28,6 +28,17 @@ for i in wineboot winecfg winepath wineserver ; do done # Install audiogame-manager -sudo wget -O /usr/local/bin/audiogame-manager https://stormgames.wolfe.casa/downloads/audiogame-manager.arm +if [[ -d ~/audiogame-manager ]]; then + git -C ~/audiogame-manager pull +else + git clone https://git.stormux.org/storm/audiogame-manager ~/audiogame-manager +fi +cat << EOF | sudo tee /usr/local/bin/audiogame-manager &> /dev/null +#!/usr/bin/env bash + +pushd ~/audiogame-manager +./audiogame-manager.sh $@ +exit 0 +EOF sudo chmod 755 /usr/local/bin/audiogame-manager restart