-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathmsys64_installer.sh
More file actions
69 lines (61 loc) · 2.4 KB
/
msys64_installer.sh
File metadata and controls
69 lines (61 loc) · 2.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# exit when any command fails
set -e
# Usage: msys64_installer.sh [--all]
# Options:
# --all: install all the optional dependencies
declare -a BASE_PACKAGES=(
"make" # Makefile
"mingw-w64-x86_64-gcc" # C/C++ compiler
"tar" # Webots dependencies
"unzip" # Webots dependencies
"zip" # robotbenchmark square path
"mingw-w64-x86_64-qt6-base" # Webots
"mingw-w64-x86_64-qt6-declarative" # Webots
"mingw-w64-x86_64-qt6-tools" # Webots (translation: lrelease and lupdate)
"mingw-w64-x86_64-qt6-translations" # Webots
"mingw-w64-x86_64-qt6-websockets" # Webots
"mingw-w64-x86_64-libzip" # Webots
"mingw-w64-x86_64-woff2" # Webots
"mingw-w64-x86_64-minizip" # Webots (assimp)
"mingw-w64-x86_64-zlib" # Webots (assimp)
"liblzma" # Webots
"mingw-w64-x86_64-ffmpeg" # Webots movies
"mingw-w64-x86_64-dlfcn" # dependency of ffmpeg
"mingw-w64-x86_64-python" # python controllers and scripts
"mingw-w64-x86_64-ca-certificates" # CA certs needed to run tests/test_suite.py
)
declare -a OPTIONAL_PACKAGES=(
"git" # Distribution script (check_submodules_update.sh)
"pacman-contrib" # Distribution script (pactree)
"swig" # Python and Java API wrappers
"mingw-w64-x86_64-boost" # to recompile ROS controller
"mingw-w64-x86_64-python-pip" # Useful for advanced python usage
)
declare -a DEVELOPMENT_PACKAGES=(
"mingw-w64-x86_64-clang" # coding style tests
"mingw-w64-x86_64-cppcheck" # coding style tests
"mingw-w64-x86_64-gdb" # debugging
"diffutils" # cmp and diff utilities
)
if [ "$1" == "--dev" ]; then
declare -a PACKAGES=("${BASE_PACKAGES[@]}" "${OPTIONAL_PACKAGES[@]}" "${DEVELOPMENT_PACKAGES[@]}")
elif [ "$1" == "--all" ]; then
declare -a PACKAGES=("${BASE_PACKAGES[@]}" "${OPTIONAL_PACKAGES[@]}")
else
declare -a PACKAGES=("${BASE_PACKAGES[@]}")
fi
for i in "${PACKAGES[@]}"
do
if ! pacman -Q $i 2> /dev/null
then
echo Installing $i
pacman -S --noconfirm $i
pacman -Scc --noconfirm
else
echo Skipping $i \(already installed\)
fi
done
script_name=$0
script_full_path=$(dirname "$0")
$script_full_path/qt_windows_installer.sh