This commit is contained in:
wael 2023-01-04 09:07:17 +03:00
parent d29cfc0cf2
commit feab0417dd
No known key found for this signature in database
5 changed files with 5 additions and 78 deletions

View file

@ -2,32 +2,10 @@ Credits to [RedstoneRuler](https://github.com/RedstoneRuler) and [CaveJohnson](h
# Installing OneShot on Linux # Installing OneShot on Linux
If you're using a Linux-based operating system, the Steam version of OneShot won't work out of the box. You can use this small program to patch OneShot. If you're using a Linux-based operating system, the Steam version of OneShot won't work out of the box. You can use this small program to make OneShot run.
To simply launch the game, you must go into OneShot's game directory, for most people,
this is `~/.local/share/Steam/steamapps/common/OneShot/`. You have to simply remove the
`librt.so.1` for the game to work.
**This guide assumes you have the Steam version of OneShot already installed, and that your system is properly configured and up-to-date.** **This guide assumes you have the Steam version of OneShot already installed, and that your system is properly configured and up-to-date.**
## Install git
To download this program, you'll need to install a program called git. Install git using your distribution's native package manager.
###### Debian, Ubuntu, Mint, and derivatives
`sudo apt install git`
###### Arch, Manjaro, and derivatives
`sudo pacman -S git`
###### Fedora, and derivatives
`sudo dnf install git`
###### OpenSuse, and derivatives
`sudo zypper in git`
## Patch OneShot
Finally, to patch OneShot, run the following command:
```
git clone https://github.com/Mizosu97/oneshot_linux && cd oneshot_linux && chmod +x install && ./install
```
When you get to the part where you need to use the clover app, run the `onejournal` command in your terminal instead.

View file

@ -1,16 +0,0 @@
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

30
install
View file

@ -1,30 +0,0 @@
#!/bin/bash
echo "Installing 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/
chmod +x $HOME/.local/share/Steam/steamapps/common/OneShot/fix_libs.sh
fi
echo "Installing 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/
chmod +x $HOME/.local/share/Steam/steamapps/common/OneShot/journal.sh
fi
echo "Installing onejournal"
chmod +x onejournal
if [ -f /usr/bin/onejournal ]; then
echo "Already installed"
else
sudo cp onejournal /usr/bin/
sudo chmod +x /usr/bin/onejournal
fi
echo "Fixing libraries"
cd ~/.local/share/Steam/steamapps/common/OneShot/
sh fix_libs.sh

View file

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

View file

@ -1,4 +0,0 @@
#!/bin/bash
cd ~/.local/share/Steam/steamapps/common/OneShot/
sh journal.sh