diff --git a/README.md b/README.md new file mode 100644 index 0000000..f07ff37 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Installing OneShot on Linux diff --git a/fix_libs.sh b/fix_libs.sh new file mode 100755 index 0000000..0b08b96 --- /dev/null +++ b/fix_libs.sh @@ -0,0 +1,16 @@ +if [ -d backuplibs ]; then + echo "Backup folder already exists." +else + mkdir backuplibs +fi + +if [ -f librt.so* ]; then + cp *.so* ./backuplibs + rm librt.so* +else + echo "No libs found." +fi + +for i in *.so*; do + [ -e /usr/lib32/$i ] && ln -sf /usr/lib32/$i $i +done diff --git a/install b/install new file mode 100755 index 0000000..7bc4b28 --- /dev/null +++ b/install @@ -0,0 +1,28 @@ +#!/bin/bash + +echo "Installing fix_libs.sh" +chmod +x fix_libs.sh +if [ -f $HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh ]; then + echo "Already installed" +else + cp fix_libs.sh $HOME/.local/share/Steam/steamapps/common/OneShot/ +fi + +echo "Installing journal.sh" +chmod +x journal.sh +if [ -f $HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh ]; then + echo "Already installed" +else + cp journal.sh $HOME/.local/share/Steam/steamapps/common/OneShot/ +fi + +echo "Installing onejournal" +chmod +x onejournal +if [ -f /usr/bin/onejournal ]; then + echo "Already installed" +else + sudo cp onejournal /usr/bin/ +fi + +echo "Fixing libraries" +./$HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh diff --git a/journal.sh b/journal.sh new file mode 100755 index 0000000..5c93283 --- /dev/null +++ b/journal.sh @@ -0,0 +1 @@ +LD_LIBRARY_PATH=./backuplibs ./_______ diff --git a/onejournal b/onejournal new file mode 100755 index 0000000..238638b --- /dev/null +++ b/onejournal @@ -0,0 +1,3 @@ +#!/bin/bash + +./$HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh