#!/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!"