diff options
| -rwxr-xr-x | assets/prepare.sh | 8 | ||||
| -rw-r--r-- | main.py | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/assets/prepare.sh b/assets/prepare.sh index 57a1620..d3c8112 100755 --- a/assets/prepare.sh +++ b/assets/prepare.sh @@ -1,5 +1,11 @@ #!/usr/bin/env bash +set -x # Enable debugging +exec > >(tee -i /tmp/prepare.log) 2>&1 # Log output and errors + +# Set the OpenSSL library path +export LD_LIBRARY_PATH=/usr/lib:$LD_LIBRARY_PATH + mod_path="$HOME/fgmod" nvidiaver=555.52.04 enablerver=3.02.000.0 @@ -71,6 +77,6 @@ if flatpak list | grep "com.valvesoftware.Steam" 1>/dev/null; then flatpak override --user --filesystem="$mod_path" com.valvesoftware.Steam fi -echo All done! echo For Steam, add this to the launch options: "$mod_path/fgmod" %COMMAND% echo For Heroic, add this as a new wrapper: "$mod_path/fgmod" +echo All done! @@ -89,11 +89,14 @@ class Plugin: fgmod_path = Path("/home/deck/fgmod") fgmod_path.mkdir(parents=True, exist_ok=True) + decky.logger.info(f"Script output:\n{process.stdout}") + decky.logger.error(f"Script errors:\n{process.stderr}") + if "All done!" not in process.stdout: decky.logger.error("Installation did not complete successfully") return { "status": "error", - "message": "Installation did not complete successfully" + "message": process.stdout + process.stderr } return { |
