You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
stk-derbymod/stkHelper.sh

34 lines
989 B

#!/bin/bash
while (true)
do
var=$(zenity --list --column="" i "Start" i "Compile" i "Exit" --column=Options --text="STK Helper" --radiolist)
if [[ $var == "Compile" ]]
#if [[ $s1 == *"$s2"* ]]
then
zenity --info --text="I will ask your password to install the dependencies"
zenity --password | sudo -S apt-get install build-essential cmake libbluetooth-dev libsdl2-dev libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev libjpeg-dev libogg-dev libopenal-dev libpng-dev libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev
mkdir cmake_build
cd cmake_build
cmake ..
zenity --info --text="Starting to compile"
make -j5 | zenity --progress --text="COMPILING..." --pulsate --time-remaining --auto-close
cd ..
zenity --info --text="Done, now you can run the game!"
elif [[ $var == "Start" ]]
then
./cmake_build/bin/supertuxkart
break;
elif [[ $var == "Exit" ]]
then
echo "bye!"
break;
fi
done