Compare commits
5 Commits
45a99b283d
...
c2f746ecf7
| Author | SHA1 | Date | |
|---|---|---|---|
| c2f746ecf7 | |||
| c05183362d | |||
| c84b1481d8 | |||
| 9c5506f097 | |||
| 6389fb7ff3 |
53
wfinfo-ng
Executable file
53
wfinfo-ng
Executable file
@@ -0,0 +1,53 @@
|
|||||||
|
#!/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
|
||||||
|
#
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Assumes Flatpak Steam
|
||||||
|
wfinfo="$HOME/.cargo/bin/wfinfo"
|
||||||
|
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"
|
||||||
|
|
||||||
|
tmpdir="$(mktemp -d)"
|
||||||
|
pushd "$tmpdir" >/dev/null 2>&1
|
||||||
|
echo "Running in $tmpdir"
|
||||||
|
|
||||||
|
# Basline tests
|
||||||
|
if ! [ -e "$logfile" ]; then
|
||||||
|
echo "Could not find logfile: $logfile"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! [ -e "$wfinfo" ]; then
|
||||||
|
echo "Could not find wfinfo -- is it installed?"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if ! [ -e "$update" ]; then
|
||||||
|
echo "Update script doesn't exist: $update"
|
||||||
|
exit 3
|
||||||
|
fi
|
||||||
|
|
||||||
|
"$update"
|
||||||
|
|
||||||
|
toolbox run \
|
||||||
|
--container wfinfo-ng \
|
||||||
|
"$wfinfo" \
|
||||||
|
--window-name "Warframe" \
|
||||||
|
"$logfile" \
|
||||||
|
|| true
|
||||||
|
|
||||||
|
popd >/dev/null 2>&1
|
||||||
|
echo "Cleaning up $tmpdir"
|
||||||
|
rm -rf "$tmpdir"
|
||||||
|
echo "All wrapped up"
|
||||||
Reference in New Issue
Block a user