2023-09-29 16:57:19 +02:00
|
|
|
#!/usr/bin/env sh
|
2018-11-01 16:14:18 -04:00
|
|
|
set -e
|
2020-12-08 14:22:21 +01:00
|
|
|
cd "$(dirname "$0")"
|
2018-11-01 16:14:18 -04:00
|
|
|
|
|
|
|
export GO="${GO:-go}"
|
|
|
|
export GOOS=windows
|
2019-06-17 21:33:01 -07:00
|
|
|
export GOFLAGS="${GOFLAGS} -mod=vendor"
|
2020-12-08 14:22:21 +01:00
|
|
|
echo "$GOFLAGS"
|
2018-11-01 16:14:18 -04:00
|
|
|
|
2020-12-08 14:22:21 +01:00
|
|
|
PLUGINS=$(cat plugins/windows_only.txt | dos2unix )
|
2018-11-01 16:14:18 -04:00
|
|
|
for d in $PLUGINS; do
|
2020-12-08 14:22:21 +01:00
|
|
|
plugin="$(basename "$d").exe"
|
|
|
|
echo "building $plugin"
|
|
|
|
$GO build -o "${PWD}/bin/$plugin" "$@" ./"${d}"
|
2018-11-01 16:14:18 -04:00
|
|
|
done
|