blob: 564e7084bb0f74849a16fd4ac9905cfc120fac1e (
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
35
36
|
#!/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/
cp -r docs $CONFIG_INSTALL_PREFIX/
if [ "$(uname -s)" = "MINGW*" ];
then
cp $CONFIG_BUILD_DIR/bin/Pong* $CONFIG_INSTALL_PREFIX/
else
install -m755 src/launch.sh $CONFIG_INSTALL_PREFIX/Pong.run
cat $CONFIG_BUILD_DIR/bin/Pong* | xz -9 -c >> $CONFIG_INSTALL_PREFIX/Pong.run
fi
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 net.iotib.Pong.metainfo.xml /app/share/appdata/net.iotib.Pong.metainfo.xml
install -Dm644 resources/icon.svg /app/share/icons/hicolor/scalable/apps/net.iotib.Pong.svg
fi
set +x
echo "Done Installing."
|