From 8823dea1748d0f67174d2acf0915d5bd7861391f Mon Sep 17 00:00:00 2001 From: PancakeTAS Date: Fri, 11 Jul 2025 00:10:48 +0200 Subject: [PATCH] create extremely primitive install script fixes #20 --- README.md | 11 ++++++++--- install.sh | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100755 install.sh diff --git a/README.md b/README.md index cbf22c7..94f0c06 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,13 @@ This project brings [Lossless Scaling's Frame Generation](https://store.steampow >[!CAUTION] > **This is a work-in-progress**. While frame generation has worked in quite a few games, compatibility in many games as well as frame pacing issues still need to be fixed. -Please see the [Wiki](https://github.com/PancakeTAS/lsfg-vk/wiki) for install instructions and join the [Discord](https://discord.gg/losslessscaling) for help (In order to see the linux channels, verify your Steam account.) +You can install lsfg-vk by running this in your command line: +```bash +curl -sSf https://pancake.gay/lsfg-vk.sh | sh +``` +Note: This script is extremely primitive and will not work on all distros. It has been written for Arch Linux and its derivations + +Please see the [Wiki](https://github.com/PancakeTAS/lsfg-vk/wiki) for more information and join the [Discord](https://discord.gg/losslessscaling) for help (In order to see the linux channels, verify your Steam account.) >[!WARNING] -> Please do note open GitHub issues for anything other than feature requests. Due to the nature of this project, it is much easier to deal with issues through Discord, than GitHub. Use the #linux-reports channel for game compatibility. - +> Please do not open GitHub issues for anything other than feature requests. Due to the nature of this project, it is much easier to deal with issues through Discord, than GitHub. Use the #linux-reports channel for game compatibility. diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..ce50d05 --- /dev/null +++ b/install.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +: "${INSTALL_PATH:=$HOME/.local}" +BASE_URL='https://pancake.gay/lsfg-vk' + +# get local and remote versions +REMOTE_HASH=$(curl -fsSL "$BASE_URL/lsfg-vk.zip.sha") +LOCAL_HASH=$(test -f "$INSTALL_PATH/share/lsfg-vk.sha" && cat "$INSTALL_PATH/share/lsfg-vk.sha") + +if [ "$REMOTE_HASH" != "$LOCAL_HASH" ]; then + # prompt user for confirmation + echo -n "Do you wish to install the latest version of lsfg-vk? (y/n) " + read -r answer < /dev/tty + + if [ "$answer" != "y" ]; then + echo "Installation aborted." + exit 0 + fi + + # download lsfg-vk + curl -fsSL -o "/tmp/lsfg-vk.zip" "$BASE_URL/lsfg-vk.zip" + if [ $? -ne 0 ]; then + echo "Failed to download lsfg-vk. Please check your internet connection." + exit 1 + fi + + # install lsfg-vk + cd "$INSTALL_PATH" || exit 1 + unzip -oqq "/tmp/lsfg-vk.zip" + echo "$REMOTE_HASH" > share/lsfg-vk.sha + + echo "lsfg-vk has been installed." +else + echo "lsfg-vk is already up to date." +fi