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_WIN ?= -H windowsgui -s -w
GOFLAGS ?= -trimpath
SOURCES = server.go twitch.go youtube.go owncast.go kick.go
SOURCES_GUI = $(SOURCES) gui.go
SOURCES_GUI = -tags gui
BIN = streamgoose
unix:
@@ -13,7 +12,7 @@ unix:
unix-headless:
$(GOMODTIDY)
$(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN) $(SOURCES)
$(GOBIN) build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(BIN)
win64:
$(GOMODTIDY)
@@ -21,7 +20,7 @@ win64:
win64-headless:
$(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:
rm $(BIN)
+1 -1
View File
@@ -1,4 +1,4 @@
// build +gui
//go:build gui
/*
StreamGoose UI — Go reference implementation