More polish

This commit is contained in:
2025-11-09 14:00:15 -06:00
parent c05183362d
commit c2f746ecf7

View File

@@ -13,12 +13,17 @@
# #
# This'll put it in ~/.cargo/bin, which we exec directly # This'll put it in ~/.cargo/bin, which we exec directly
# #
set -euo pipefail
# Assumes Flatpak Steam # Assumes Flatpak Steam
wfinfo="$HOME/.cargo/bin/wfinfo" wfinfo="$HOME/.cargo/bin/wfinfo"
update="$HOME/Projects/wfinfo-ng/update.sh" update="$HOME/Projects/wfinfo-ng/update.sh"
logfile="$HOME/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps/compatdata/230410/pfx/drive_c/users/steamuser/AppData/Local/Warframe/EE.log" logfile="$HOME/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps/compatdata/230410/pfx/drive_c/users/steamuser/AppData/Local/Warframe/EE.log"
tmpdir="$(mktemp -d)"
pushd "$tmpdir" >/dev/null 2>&1
echo "Running in $tmpdir"
# Basline tests # Basline tests
if ! [ -e "$logfile" ]; then if ! [ -e "$logfile" ]; then
echo "Could not find logfile: $logfile" echo "Could not find logfile: $logfile"
@@ -35,8 +40,14 @@ fi
"$update" "$update"
exec toolbox run \ toolbox run \
--container wfinfo-ng \ --container wfinfo-ng \
"$wfinfo" \ "$wfinfo" \
--window-name "Warframe" \ --window-name "Warframe" \
"$logfile" "$logfile" \
|| true
popd >/dev/null 2>&1
echo "Cleaning up $tmpdir"
rm -rf "$tmpdir"
echo "All wrapped up"