mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-16 03:06:45 -04:00
linux release build, cleanup repository
This commit is contained in:
parent
529b3e8bf8
commit
3d8ee275e4
441 changed files with 280 additions and 65861 deletions
26
platform/linux/skeldal.sh
Executable file
26
platform/linux/skeldal.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
temp_file=$(mktemp /tmp/skeldal.XXXXXX.log)
|
||||
|
||||
./skeldal > "$temp_file" 2>&1
|
||||
|
||||
exit_code=$?
|
||||
|
||||
if [ $exit_code -ne 0 ]; then
|
||||
error_message=$(cat "$temp_file")
|
||||
|
||||
if command -v zenity > /dev/null; then
|
||||
zenity --warning --title="Skeldal ERROR" --text="$error_message"
|
||||
elif command -v kdialog > /dev/null; then
|
||||
kdialog --title "Skeldal ERROR" --error "$error_message"
|
||||
elif command -v xmessage > /dev/null; then
|
||||
xmessage -center -file $temp_file
|
||||
elif command -v xdg-open > /dev/null; then
|
||||
xdg-open "$temp_file"
|
||||
sleep 5;
|
||||
else
|
||||
cat "$temp_file"
|
||||
fi
|
||||
fi
|
||||
#rm $temp_file
|
||||
exit $exit_code
|
Loading…
Add table
Add a link
Reference in a new issue