mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-08 10:41:16 +08:00
feat: 解决 amd64 环境下的打包问题
This commit is contained in:
parent
4ae8e580b9
commit
471bbb5c43
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
|
@ -16,7 +16,7 @@ build_web:
|
||||||
|
|
||||||
build_bin:
|
build_bin:
|
||||||
cd $(SERVER_PATH) \
|
cd $(SERVER_PATH) \
|
||||||
&& CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
&& CGO_ENABLED=1 GOOS=$(GOOS) GOARCH=$(GOARCH) $(GOBUILD) -trimpath -ldflags '-s -w --extldflags "-static -fpic"' -tags osusergo -o $(BUILD_PATH)/$(APP_NAME) $(MAIN)
|
||||||
|
|
||||||
build_linux_on_mac:
|
build_linux_on_mac:
|
||||||
cd $(SERVER_PATH) \
|
cd $(SERVER_PATH) \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue