#!/bin/bash installdir=$( dirname "${0}" ) # Setup dependencies ... pkexec 'apt-get install -y mono-complete libsdl2-2.0-0 libopenal1 libcurl3 zenity' # Setup ZK... cd ${installdir} wget -N https://zero-k.info/lobby/Chobby.exe | zenity --progress --text "Downloading Zero-K Lobby..." --title "Downloading Zero-K" --auto-close --auto-kill chmod o+x Chobby.exe echo "[Desktop Entry] Version=1.0 Name=Zero-K Exec=mono ${installdir}/Chobby.exe Path=${installdir} Icon=${installdir}/icon.png Terminal=false Type=Application Categories=Application;Game;ArcadeGame; " > "${installdir}/Zero-K.desktop" chmod o+x "${installdir}/Zero-K.desktop" # Delete itself zenity --info --title "Done\!" --text "Setup complete! Please click the \"Zero-K\" file to run the game." rm "${0}"