Skip to content

Commit 366c55a

Browse files
committed
Add more build targets, fix double response issue
1 parent ad63b2d commit 366c55a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ endif
3030
export CGO_ENABLED = 0
3131
BUILD_LDFLAGS=-s -w
3232
BUILD_PKG = ./cmd/swgui
33+
export RELEASE_TARGETS="darwin/amd64 darwin/arm64 linux/amd64 linux/arm64 windows/amd64"
3334

3435
-include $(DEVGO_PATH)/makefiles/main.mk
3536
-include $(DEVGO_PATH)/makefiles/lint.mk

cmd/swgui/swgui.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ func main() {
3939
hh := http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
4040
if r.URL.Path == urlToSchema {
4141
http.ServeFile(rw, r, filePathToSchema)
42+
43+
return
4244
}
4345

4446
swh.ServeHTTP(rw, r)

0 commit comments

Comments
 (0)