1
0
Fork 0
telegraf/scripts/windows-gen-syso.sh
Daniel Baumann 4978089aab
Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-05-24 07:26:29 +02:00

19 lines
474 B
Bash
Executable file

#!/bin/bash
# Run goversioninfo to generate the resource.syso to embed version info.
set -eux
NAME="Telegraf"
VERSION=$(cd ../../ && make version)
FLAGS=()
# If building for arm64, then include the extra flags required.
if [ -n "${1+x}" ] && [ "$1" = "arm64" ]; then
FLAGS=(-arm -64)
fi
goversioninfo "${FLAGS[@]}" \
-product-name "$NAME" \
-product-version "$VERSION" \
-skip-versioninfo \
-icon=../../assets/windows/tiger.ico \
-o resource.syso