diff options
| author | Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> | 2025-07-17 00:28:42 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-17 00:28:42 -0400 |
| commit | 74ac6e7b7a18c2ae969b08242a5919f903d294e2 (patch) | |
| tree | e6d48b345c4933ea21a83ef6e2dc315ba9a990f3 /defaults/assets/prepare.sh | |
| parent | e905b94fe5b40b438f2ce63caad90760fea7fc9a (diff) | |
| download | Decky-Framegen-74ac6e7b7a18c2ae969b08242a5919f903d294e2.tar.gz Decky-Framegen-74ac6e7b7a18c2ae969b08242a5919f903d294e2.zip | |
v0.10.0 initial implementation of proper optiscaler nightly statically linked (#113)
* initial implementation of proper optiscaler nightly statically linked
* default ini to nukems on mod dir install
* description tweaks
Diffstat (limited to 'defaults/assets/prepare.sh')
| -rwxr-xr-x | defaults/assets/prepare.sh | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/defaults/assets/prepare.sh b/defaults/assets/prepare.sh deleted file mode 100755 index 65f92e1..0000000 --- a/defaults/assets/prepare.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -set -x # Enable debugging -exec > >(tee -i /tmp/prepare.log) 2>&1 # Log output and errors - -mod_path="$HOME/fgmod" -bin_path="$(dirname "$(realpath "$0")")/../bin" -assets_path="$(dirname "$(realpath "$0")")" - -standalone=1 - -if [[ -d "$mod_path" ]] && [[ ! $mod_path == . ]]; then - rm -r "$mod_path" -fi - -mkdir -p "$mod_path" -cd "$mod_path" || exit 1 - -# Copy all files from bin directory into the current directory -cp "$bin_path"/* . - -# # Unzip assets.zip so that all files are in the modpath root, then remove the zip file -# unzip -j -o assets.zip && rm assets.zip - -# Copy fgmod.sh and fgmod-uninstaller.sh from defaults/assets -# cp "$assets_path/fgmod.sh" "$mod_path/fgmod" || exit 1 -# cp "$assets_path/fgmod-uninstaller.sh" "$mod_path" || exit 1 - -# Update paths in scripts -sed -i 's|mod_path="/usr/share/fgmod"|mod_path="'"$mod_path"'"|g' fgmod -chmod +x fgmod - -sed -i 's|mod_path="/usr/share/fgmod"|mod_path="'"$mod_path"'"|g' fgmod-uninstaller.sh -chmod +x fgmod-uninstaller.sh - -echo "" - -# Flatpak compatibility -if flatpak list | grep "com.valvesoftware.Steam" 1>/dev/null; then - echo "Flatpak version of Steam detected, adding access to fgmod's folder" - echo "Please restart Steam!" - flatpak override --user --filesystem="$mod_path" com.valvesoftware.Steam -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!"
\ No newline at end of file |
