mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 21:39:57 +00:00
26 lines
666 B
Bash
Executable file
26 lines
666 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
read -rp "Enter your Oneshot 2016 installation path: " oneshot_path
|
|
read -rp "Enter path for installation: " install_path
|
|
|
|
mkdir -p $install_path
|
|
cp -r $oneshot_path/* "$install_path/"
|
|
cp -r Sunshine/* "$install_path/"
|
|
|
|
echo """[Desktop Entry]
|
|
Type=Application
|
|
Name=Oneshot: Sunshine
|
|
Comment=Oneshot mod
|
|
Exec=$install_path/oneshot.sh
|
|
Icon=$install_path/icon.png
|
|
Categories=Game;
|
|
""" > $HOME/.local/share/applications/sunshine.desktop
|
|
echo """
|
|
#!/bin/bash
|
|
LD_LIBRARY_PATH=$install_path\;$LD_LIBRARY_PATH $install_path/oneshot
|
|
""" > $install_path/oneshot.sh
|
|
chmod +x $install_path/oneshot.sh
|
|
chmod +x $install_path/oneshot
|
|
|
|
echo "Done!"
|