0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-15 10:04:15 +00:00
netdata_netdata/packaging/windows/msys2-dependencies.sh
Austin S. Hemmelgarn a3ea51ed15
Add code signing for Windows executables. ()
* Add code signing for Windows executables.

* Fix typos and add failure notification.

* Use full version for trusted signing action.

Because MS isn’t publishing it with proper semver tags.

* Avoid reinstalling dependencies that are already installed.

* Fix CMake 3.30 compatibility.

* Don’t let BUILD_DIR propagate to cmake.

* Fix JSON-C build warning.

* Fix handling of externally specified build directories.

While regular Windows paths do actually work under MSYS2, they seem to
confuse CMake, so we need to convert to a standard MSYS2 path if
`BUILD_DIR` is set to a Windows path.

* Fix typo.

* Fix build directory handling.
2024-08-08 07:24:54 -04:00

50 lines
1.4 KiB
Bash
Executable file

#!/bin/bash
#
# Install the dependencies we need to build Netdata on MSYS2
. /etc/profile
set -euo pipefail
${GITHUB_ACTIONS+echo "::group::Updating MSYS2"}
pacman -Syuu --noconfirm
${GITHUB_ACTIONS+echo "::endgroup::"}
${GITHUB_ACTIONS+echo "::group::Installing dependencies"}
pacman -S --noconfirm --needed \
base-devel \
cmake \
git \
liblz4-devel \
libutil-linux \
libutil-linux-devel \
libyaml-devel \
libzstd-devel \
mingw64/mingw-w64-x86_64-brotli \
mingw64/mingw-w64-x86_64-go \
mingw64/mingw-w64-x86_64-libuv \
mingw64/mingw-w64-x86_64-lz4 \
mingw64/mingw-w64-x86_64-nsis \
mingw64/mingw-w64-x86_64-openssl \
mingw64/mingw-w64-x86_64-pcre2 \
mingw64/mingw-w64-x86_64-protobuf \
mingw64/mingw-w64-x86_64-zlib \
mingw-w64-ucrt-x86_64-toolchain \
mingw-w64-x86_64-toolchain \
msys2-devel \
msys/brotli-devel \
msys/libuv-devel \
msys/pcre2-devel \
msys/zlib-devel \
openssl-devel \
protobuf-devel \
python \
ucrt64/mingw-w64-ucrt-x86_64-brotli \
ucrt64/mingw-w64-ucrt-x86_64-go \
ucrt64/mingw-w64-ucrt-x86_64-libuv \
ucrt64/mingw-w64-ucrt-x86_64-lz4 \
ucrt64/mingw-w64-ucrt-x86_64-openssl \
ucrt64/mingw-w64-ucrt-x86_64-pcre2 \
ucrt64/mingw-w64-ucrt-x86_64-protobuf \
ucrt64/mingw-w64-ucrt-x86_64-zlib
${GITHUB_ACTIONS+echo "::endgroup::"}