mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 01:30:25 +00:00
Compiled for linux amd64
This commit is contained in:
6
Makefile
6
Makefile
@@ -9,6 +9,12 @@ build:
|
|||||||
go mod vendor; \
|
go mod vendor; \
|
||||||
CGO_ENABLED=0 go build -a -ldflags '-s' -installsuffix cgo -o motd cmd/motdGO/main.go
|
CGO_ENABLED=0 go build -a -ldflags '-s' -installsuffix cgo -o motd cmd/motdGO/main.go
|
||||||
|
|
||||||
|
build-linux:
|
||||||
|
export GO11MODULE="auto" \
|
||||||
|
go mod download; \
|
||||||
|
go mod vendor; \
|
||||||
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -ldflags '-s' -installsuffix cgo -o motd-linux cmd/motdGO/main.go
|
||||||
|
|
||||||
install:
|
install:
|
||||||
export GO11MODULE="on"; \
|
export GO11MODULE="on"; \
|
||||||
go mod tidy; \
|
go mod tidy; \
|
||||||
|
|||||||
BIN
motd-linux
Executable file
BIN
motd-linux
Executable file
Binary file not shown.
Reference in New Issue
Block a user