Switched to build tags for gui builds

This commit is contained in:
Luxferre
2024-09-16 08:58:12 +03:00
parent a5e7762406
commit 6f2211ea7f
2 changed files with 4 additions and 5 deletions
+3 -4
View File
@@ -3,8 +3,7 @@ GOMODTIDY ?= $(GOBIN) mod tidy
LDFLAGS ?= -s -w LDFLAGS ?= -s -w
LDFLAGS_WIN ?= -H windowsgui -s -w LDFLAGS_WIN ?= -H windowsgui -s -w
GOFLAGS ?= -trimpath GOFLAGS ?= -trimpath
SOURCES = server.go twitch.go youtube.go owncast.go kick.go SOURCES_GUI = -tags gui
SOURCES_GUI = $(SOURCES) gui.go
BIN = streamgoose BIN = streamgoose
unix: unix:
@@ -13,7 +12,7 @@ unix:
unix-headless: unix-headless:
$(GOMODTIDY) $(GOMODTIDY)
$(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN) $(SOURCES) $(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN)
win64: win64:
$(GOMODTIDY) $(GOMODTIDY)
@@ -21,7 +20,7 @@ win64:
win64-headless: win64-headless:
$(GOMODTIDY) $(GOMODTIDY)
GOOS=windows GOARCH=amd64 $(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN).exe $(SOURCES) GOOS=windows GOARCH=amd64 $(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN).exe
clean: clean:
rm $(BIN) rm $(BIN)
+1 -1
View File
@@ -1,4 +1,4 @@
// build +gui //go:build gui
/* /*
StreamGoose UI — Go reference implementation StreamGoose UI — Go reference implementation