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. --- install.sh | 5 +++-- src/launch.sh | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/launch.sh diff --git a/install.sh b/install.sh index 08e74ee..8c61578 100755 --- a/install.sh +++ b/install.sh @@ -14,9 +14,10 @@ set -u echo "Installing Project." set -x mkdir -p $CONFIG_INSTALL_PREFIX -cp -r ./resources $CONFIG_INSTALL_PREFIX/ -cp -r ./docs $CONFIG_INSTALL_PREFIX/ +cp -r resources $CONFIG_INSTALL_PREFIX/ +cp -r docs $CONFIG_INSTALL_PREFIX/ install -m755 $CONFIG_BUILD_DIR/bin/Pong* $CONFIG_INSTALL_PREFIX/ +install -m755 src/launch.sh $CONFIG_INSTALL_PREFIX/launch_pong if [ "$CONFIG_FLATPAK" = "true" ]; then 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 pe.js?id=8ed77a82bc74f195806ddc4c187b590c5dfcdde0'>tree commit diff stats
path: root/js/reshape.js
blob: f45b76f735fe3b6767e375d731f5d23b683d49bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34