diff options
| author | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-24 09:35:08 -0500 |
|---|---|---|
| committer | xXJSONDeruloXx <danielhimebauch@gmail.com> | 2025-01-24 09:35:08 -0500 |
| commit | 9af080d45d0ae21cb01f0d6923e96999db4ed9fb (patch) | |
| tree | 530b9e5ad0293e1aea207a7c0e962e28db5308d4 | |
| parent | 97ad13bdfb645498ed5d43190f51d5b54d76ad0f (diff) | |
| download | Decky-Framegen-9af080d45d0ae21cb01f0d6923e96999db4ed9fb.tar.gz Decky-Framegen-9af080d45d0ae21cb01f0d6923e96999db4ed9fb.zip | |
hack around for bazzite in prep scriptbeta2
| -rwxr-xr-x | assets/prepare.sh | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/assets/prepare.sh b/assets/prepare.sh index d3c8112..13f6ff0 100755 --- a/assets/prepare.sh +++ b/assets/prepare.sh @@ -3,15 +3,31 @@ 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 +# Function to test if curl works with a given LD_LIBRARY_PATH +test_curl() { + local lib_path=$1 + export LD_LIBRARY_PATH=$lib_path:$LD_LIBRARY_PATH + echo "Testing curl with LD_LIBRARY_PATH=$LD_LIBRARY_PATH" + curl --version >/dev/null 2>&1 + return $? +} + +# Try library paths and choose the one that works +if test_curl "/usr/lib"; then + echo "Using OpenSSL library path: /usr/lib" + export LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH" +elif test_curl "/home/linuxbrew/.linuxbrew/lib"; then + echo "Using OpenSSL library path: /home/linuxbrew/.linuxbrew/lib" + export LD_LIBRARY_PATH="/home/linuxbrew/.linuxbrew/lib:$LD_LIBRARY_PATH" +else + echo "Failed to configure OpenSSL for curl. Exiting." + exit 1 +fi mod_path="$HOME/fgmod" nvidiaver=555.52.04 enablerver=3.02.000.0 fakenvapiver=v1.2.0 -# standalone makes use of fgmod.sh and fgmod-uninstaller.sh from the working directory -# To make it fully standalone with files being installed to pwd, set standalone=1 and mod_path=. standalone=1 if [[ -d "$mod_path" ]] && [[ ! $mod_path == . ]]; then @@ -19,7 +35,7 @@ if [[ -d "$mod_path" ]] && [[ ! $mod_path == . ]]; then fi # In case script gets ran from a different directory -cd $(dirname "$0") +cd "$(dirname "$0")" mkdir -p "$mod_path" if [[ ! $standalone -eq 0 ]]; then @@ -28,11 +44,11 @@ if [[ ! $standalone -eq 0 ]]; then fi cd "$mod_path" || exit 1 -curl -OLf https://github.com/artur-graniszewski/DLSS-Enabler/releases/download/$enablerver/dlss-enabler-setup-$enablerver.exe -curl -OLf https://download.nvidia.com/XFree86/Linux-x86_64/$nvidiaver/NVIDIA-Linux-x86_64-$nvidiaver.run -curl -OLf https://raw.githubusercontent.com/mozilla/fxc2/master/dll/d3dcompiler_47.dll -curl -OLf https://github.com/FakeMichau/innoextract/releases/download/6.3.0/innoextract -curl -OLf https://github.com/FakeMichau/fakenvapi/releases/download/$fakenvapiver/fakenvapi.7z +curl -OLf https://github.com/artur-graniszewski/DLSS-Enabler/releases/download/$enablerver/dlss-enabler-setup-$enablerver.exe || exit 1 +curl -OLf https://download.nvidia.com/XFree86/Linux-x86_64/$nvidiaver/NVIDIA-Linux-x86_64-$nvidiaver.run || exit 1 +curl -OLf https://raw.githubusercontent.com/mozilla/fxc2/master/dll/d3dcompiler_47.dll || exit 1 +curl -OLf https://github.com/FakeMichau/innoextract/releases/download/6.3.0/innoextract || exit 1 +curl -OLf https://github.com/FakeMichau/fakenvapi/releases/download/$fakenvapiver/fakenvapi.7z || exit 1 [[ $standalone -eq 0 ]] && curl -o fgmod -Lf https://raw.githubusercontent.com/FakeMichau/fgmod/main/fgmod.sh [[ $standalone -eq 0 ]] && curl -OL https://raw.githubusercontent.com/FakeMichau/fgmod/main/fgmod-uninstaller.sh @@ -79,4 +95,4 @@ fi 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! +echo All done!
\ No newline at end of file |
