mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +00:00
a
This commit is contained in:
parent
433498b52d
commit
db64eb7f0f
1 changed files with 10 additions and 3 deletions
|
|
@ -5,16 +5,23 @@ read -rp "Enter your Oneshot 2016 installation path: " oneshot_path
|
||||||
read -rp "Enter path for installation: " install_path
|
read -rp "Enter path for installation: " install_path
|
||||||
|
|
||||||
mkdir -p $install_path
|
mkdir -p $install_path
|
||||||
cp -r "$oneshot_path/*" "$install_path/"
|
cp -r $oneshot_path/* "$install_path/"
|
||||||
cp -r "Sunshine/*" "$install_path/"
|
cp -r Sunshine/* "$install_path/"
|
||||||
|
|
||||||
echo """[Desktop Entry]
|
echo """[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Oneshot: Sunshine
|
Name=Oneshot: Sunshine
|
||||||
Comment=Oneshot mod
|
Comment=Oneshot mod
|
||||||
Exec=$install_path/oneshot
|
Exec=$install_path/oneshot.sh
|
||||||
Icon=$install_path/icon.png
|
Icon=$install_path/icon.png
|
||||||
Categories=Game;
|
Categories=Game;
|
||||||
""" > $HOME/.local/share/applications/sunshine.desktop
|
""" > $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
|
||||||
|
$install_path/oneshot
|
||||||
|
LD_LIBRARY_PATH
|
||||||
|
|
||||||
echo "Done!"
|
echo "Done!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue