From 4a01250a8572ae2965b27e9a11daa9820e0433d2 Mon Sep 17 00:00:00 2001 From: Charadon Date: Tue, 20 Sep 2022 11:33:11 -0400 Subject: Added launch script for unix systems. --- src/launch.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/launch.sh (limited to 'src') diff --git a/src/launch.sh b/src/launch.sh new file mode 100644 index 0000000..7f8fd82 --- /dev/null +++ b/src/launch.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Launch script for unix systems, loads bundled libraries if there are any. + +cd "$(dirname $0)" +DYLD_LIBRARY_PATH=libs/ LD_LIBARY_PATH=libs/ ./Pong > output.log 2>&1 +if [ ! $? = "0" ]; +then + zenity --error --text="The program appears to not have closed correctly. Please check output.log to see details." +fi -- cgit 1.4.1-2-gfad0