From 08ee458a27a700fb76f9c64d6f0767b33a2d34d5 Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 16 Dec 2021 15:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=20edit=20README?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b37d3b82..a5bd14b8 100644 --- a/README.md +++ b/README.md @@ -262,15 +262,15 @@ go mod tidy ```bash # 本机平台 -go build -ldflags "-s -w" -o zerobot +go build -ldflags "-s -w" -o zerobot -trimpath # x64 Linux 平台 如各种云服务器 -GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o zerobot +GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o zerobot -trimpath # x64 Windows 平台 如大多数家用电脑 -GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o zerobot.exe +GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o zerobot.exe -trimpath # armv6 Linux 平台 如树莓派 zero W -GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot +GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot -trimpath # (由于引入了github.com/logoove/sqlite,本项不再可用)mips Linux 平台 如 路由器 wndr4300 -GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot +GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot -trimpath ``` 5. 运行 OneBot 框架,并同时运行本插件