niko is cute

This commit is contained in:
Mizosu97 2023-01-03 15:04:52 -05:00
parent faaced12b9
commit 2728652f54
5 changed files with 49 additions and 0 deletions

1
README.md Normal file
View file

@ -0,0 +1 @@
# Installing OneShot on Linux

16
fix_libs.sh Executable file
View file

@ -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

28
install Executable file
View file

@ -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

1
journal.sh Executable file
View file

@ -0,0 +1 @@
LD_LIBRARY_PATH=./backuplibs ./_______

3
onejournal Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
./$HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh