mkxp-sunshine/installer/installer.sh
DepressedTWM c03282d892 meow
2026-06-12 07:12:36 -04:00

24 lines
662 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=/bin/sh $install_path/oneshot.sh
Icon=$install_path/icon.png
Categories=Game;
""" > $HOME/.local/share/applications/sunshine.desktop
set +u
echo "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!"