🎨 improve offline server detect

This commit is contained in:
naiba
2020-10-24 21:29:05 +08:00
parent 7143089dcb
commit 4ad8a7e61a
9 changed files with 242 additions and 87 deletions

View File

@@ -1,2 +1,2 @@
# !/bin/sh
xgo -v -targets=linux/amd64 -dest release -out nezha-$1 -pkg cmd/$1/main.go .
GOOS=linux CGO_ENABLED=1 GOARCH=amd64 go build -o ./release/nezha-$1 cmd/$1/main.go