Skip to content

Commit

Permalink
Update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeguzis committed Nov 17, 2024
1 parent aa63a4c commit a783985
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions utilities/update-software/install-update-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
set -e -o pipefail

GIT_ROOT=$(git rev-parse --show-toplevel)
CONFIG_ROOT="${HOME}/.config/steamos-tools"

# Config dirs
mkdir -p "${CONFIG_ROOT}"
mkdir -p "${CONFIG_ROOT}/ludusavi"

# Copy
cp -v "${GIT_ROOT}/cfgs/ludusavi/config.yaml" "${CONFIG_ROOT}/ludusavi/"
cp -v "${GIT_ROOT}/cfgs/desktop-files/update-software.desktop" "${HOME}/Desktop"
cp -v "${GIT_ROOT}/cfgs/desktop-files/update-software.desktop" "${HOME}/.local/share/applications"
cp -v "${GIT_ROOT}/utilities/update-software/update-software.sh" "${HOME}/.local/bin"
Expand Down
5 changes: 3 additions & 2 deletions utilities/update-software/update-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
set -e -o pipefail

VERSION="0.8.5"
CURDIR="${PWD}"Lw
CURDIR="${PWD}"
BACKUP_LOC="/tmp/update-emulators-backup"
CONFIG_ROOT="${HOME}/.config/steamos-tools"
APP_LOC="${HOME}/Applications"
LOG="/tmp/steamos-software-updater.log"
CLI=false
Expand Down Expand Up @@ -294,7 +295,7 @@ update_core_software() {
flatpak run com.github.mtkennerly.ludusavi --version

echo "[INFO] ludusavi"
cp -v ${git_root}/cfgs/ludusavi/config.yaml ${HOME}/.var/app/com.github.mtkennerly.ludusavi/config/ludusavi/config.yaml
cp -v ${CONFIG_ROOT}/ludusavi/config.yaml ${HOME}/.var/app/com.github.mtkennerly.ludusavi/config/ludusavi/config.yaml
sed -i "s|HOME_PATH|${HOME}|g" ${HOME}/.var/app/com.github.mtkennerly.ludusavi/config/ludusavi/config.yaml

#
Expand Down

0 comments on commit a783985

Please sign in to comment.