Skip to content

Commit

Permalink
Fix xgo build wrong package
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <zyl.skysniper@gmail.com>
  • Loading branch information
yilunzhang committed Apr 25, 2023
1 parent cd32e8b commit f1842ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ USE_PROXY=GOPROXY=https://goproxy.io
VERSION:=$(shell git describe --abbrev=7 --dirty --always --tags)
LDFLAGS="-s -w -X github.com/nknorg/nconnect/config.Version=$(VERSION)"
BUILD=CGO_ENABLED=1 go build -ldflags $(LDFLAGS)
XGO_MODULE=github.com/nknorg/nconnect
MAIN=./bin
XGO_MODULE=github.com/nknorg/nconnect/bin
XGO_BUILD=xgo -ldflags $(LDFLAGS) --targets=$(XGO_TARGET) $(XGOFLAGS)
BUILD_DIR=build
BIN_NAME=nConnect
MAIN=bin/main.go
ifdef GOARM
BIN_DIR=$(GOOS)-$(GOARCH)v$(GOARM)
XGO_TARGET=$(GOOS)/$(GOARCH)-$(GOARM)
Expand All @@ -26,7 +26,7 @@ local: web/dist

.PHONY: local_with_proxy
local_with_proxy: web/dist
$(USE_PROXY) $(BUILD) -o $(BIN_NAME)$(EXT) .
$(USE_PROXY) $(BUILD) -o $(BIN_NAME)$(EXT) $(MAIN)

.PHONY: local_or_with_proxy
local_or_with_proxy:
Expand Down

0 comments on commit f1842ee

Please sign in to comment.