forked from rcsoccersim/rcssserver
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild_appimage.sh
More file actions
executable file
·39 lines (33 loc) · 1.83 KB
/
Copy pathbuild_appimage.sh
File metadata and controls
executable file
·39 lines (33 loc) · 1.83 KB
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
37
38
39
#!/bin/bash
set -e
wget -c "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" -O linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
mkdir rcssserver-x86_64
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
BUILD_PWD="${SCRIPT_DIR}/../../build"
APP_IMAGE_DIR="${SCRIPT_DIR}"
# find libc and libstdc++ libz dependencies
LIBSTDCPP_PATH=$(ldd $BUILD_PWD/rcssserver | grep libstdc++ | awk '{ print $3 }')
LIBZ_PATH=$(ldd $BUILD_PWD/rcssserver | grep libz.so | awk '{ print $3 }')
LIBRCSSCLANGPARSER_PATH=$(ldd $BUILD_PWD/rcssserver | grep librcssclangparser.so | awk '{ print $3 }')
LIBRCSSCONFPARSER_PATH=$(ldd $BUILD_PWD/rcssserver | grep librcssconfparser.so | awk '{ print $3 }')
LIBRCSSGZ_PATH=$(ldd $BUILD_PWD/rcssserver | grep librcssgz.so | awk '{ print $3 }')
LIBRCSSNET_PATH=$(ldd $BUILD_PWD/rcssserver | grep librcssnet.so | awk '{ print $3 }')
echo "LIBSTDCPP_PATH=" $LIBSTDCPP_PATH
echo "LIBZ_PATH=" $LIBZ_PATH
echo "LIBRCSSCLANGPARSER_PATH=" $LIBRCSSCLANGPARSER_PATH
echo "LIBRCSSCONFPARSER_PATH=" $LIBRCSSCONFPARSER_PATH
echo "LIBRCSSGZ_PATH=" $LIBRCSSGZ_PATH
echo "LIBRCSSNET_PATH=" $LIBRCSSNET_PATH
./linuxdeploy-x86_64.AppImage --appdir ./rcssserver-x86_64 \
-e $BUILD_PWD/rcssserver \
-l $LIBRCSSCLANGPARSER_PATH \
-l $LIBRCSSCONFPARSER_PATH \
-l $LIBRCSSGZ_PATH \
-l $LIBRCSSNET_PATH \
-l $LIBSTDCPP_PATH \
-l $LIBZ_PATH \
-d $APP_IMAGE_DIR/rcssserver.desktop \
-i $APP_IMAGE_DIR/rcssserver.png \
--output appimage
echo "App Image Created."