From e7946664451093f76446244dab36e85f87623ddc Mon Sep 17 00:00:00 2001 From: VideoTools CI Date: Sat, 17 Jan 2026 13:20:02 -0500 Subject: [PATCH] Fix Windows build GOFLAGS issue - move gstreamer tags to build command --- scripts/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 3a466c3..be847dc 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -82,8 +82,7 @@ case "$OS" in echo "" echo "Building VideoTools $FULL_VERSION for Windows..." export CGO_ENABLED=1 - # GStreamer is always enabled (mandatory dependency on supported platforms) - export GOFLAGS="${GOFLAGS:-} -tags gstreamer" + # Set module flag if needed if [ -d "$PROJECT_ROOT/vendor" ] && [ ! -f "$PROJECT_ROOT/vendor/modules.txt" ]; then export GOFLAGS="${GOFLAGS:-} -mod=mod" fi @@ -91,7 +90,7 @@ case "$OS" in if [ -n "$GIT_COMMIT" ]; then LDFLAGS="$LDFLAGS -X main.buildCommit=$GIT_COMMIT" fi - if go build -ldflags="$LDFLAGS" -o VideoTools.exe .; then + if go build -tags gstreamer -ldflags="$LDFLAGS" -o VideoTools.exe .; then build_end=$(date +%s) build_secs=$((build_end - build_start)) echo "Build successful! (VideoTools $FULL_VERSION)"