Update wfinfo-ng

This commit is contained in:
2025-11-09 13:52:52 -06:00
parent 6389fb7ff3
commit 9c5506f097

View File

@@ -1,6 +1,21 @@
#!/bin/bash #!/bin/bash
#
# Quick-launch script for wfinfo-ng
# https://github.com/knoellle/wfinfo-ng
#
# Quick setup for a toolbox on Fedora:
# toolbox create wfinfo-ng
# toolbox enter wfinfo-ng
# sudo dnf install -y cargo clang cmake curl fontconfig-devel g++ jq leptonica-devel libXi-devel libXtst-devel openssl-devel rust tesseract-devel xrandr
#
# After this, CD into the repo and run:
# cargo install --path . --bin wfinfo
#
# This'll put it in ~/.cargo/bin, which we exec directly
#
# Assumes Flatpak Steam # Assumes Flatpak Steam
wfinfo="$HOME/.cargo/bin/wfinfo-ng"
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"
if ! [ -e "$logfile" ]; then if ! [ -e "$logfile" ]; then
@@ -8,6 +23,14 @@ if ! [ -e "$logfile" ]; then
exit 1 exit 1
fi fi
if ! [ -e "$wfinfo" ]; then
echo "Could not find wfinfo -- is it installed?"
exit 2
elif ! [ -x "$winfo" ]; then
echo "wfinfo exists but isn't executable? What'd you do?"
exit 3
fi
exec toolbox run \ exec toolbox run \
--container wfinfo-ng \ --container wfinfo-ng \
~/.cargo/bin/wfinfo \ ~/.cargo/bin/wfinfo \