diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-22 22:16:29 -0500 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-22 22:16:29 -0500 |
| commit | aaaa3d6d8cf41b2de461cd4510d18e5cc8e60ec8 (patch) | |
| tree | b63e338b12c2c01bec3387a983bbc120e9c07d39 | |
| parent | 871cdbd04df02b32dbdd07467720b6eb9537178a (diff) | |
| download | Decky-Framegen-aaaa3d6d8cf41b2de461cd4510d18e5cc8e60ec8.tar.gz Decky-Framegen-aaaa3d6d8cf41b2de461cd4510d18e5cc8e60ec8.zip | |
fix prep script, path to openssl and logging
| -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 { |
