diff options
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/install.sh b/install.sh index 40d2c2b..83567f1 100755 --- a/install.sh +++ b/install.sh @@ -1,7 +1,15 @@ #!/bin/sh -set -eu +set -e -source ./tup.config +# Check if another config is being sourced. +if [ -z $TUP_CONFIG ]; +then + . ./tup.config +else + . ./$TUP_CONFIG +fi + +set -u echo "Installing Project." set -x @@ -9,5 +17,11 @@ mkdir -p $CONFIG_INSTALL_PREFIX cp -r ./resources $CONFIG_INSTALL_PREFIX/resources cp -r ./docs $CONFIG_INSTALL_PREFIX/docs install -m755 $CONFIG_BUILD_DIR/bin/Pong* $CONFIG_INSTALL_PREFIX/ + +if [ "$CONFIG_FLATPAK" = "true" ]; +then + install -Dm755 src/flatpak/flatpak_launch.sh /app/bin/flatpak_launch.sh + install -Dm644 src/Pong.desktop /app/share/applications/net.iotib.Pong.desktop +fi set +x echo "Done Installing." |