From aaaa3d6d8cf41b2de461cd4510d18e5cc8e60ec8 Mon Sep 17 00:00:00 2001 From: xXJSONDeruloXx Date: Wed, 22 Jan 2025 22:16:29 -0500 Subject: fix prep script, path to openssl and logging --- assets/prepare.sh | 8 +++++++- 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! diff --git a/main.py b/main.py index e2c4c3b..f26d320 100644 --- a/main.py +++ b/main.py @@ -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 { -- cgit v1.2.3