#!/bin/sh set -e # 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 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 install -Dm644 resources/icon.svg /app/share/icons/hicolor/scalable/apps/net.iotib.Pong.svg fi set +x echo "Done Installing."