Skip to content

Commit 73c7bbd

Browse files
committed
doc: update compile instructions
1 parent 558c3ee commit 73c7bbd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,15 +1681,15 @@ go mod tidy
16811681

16821682
```bash
16831683
# 本机平台
1684-
go build -ldflags "-s -w" -o zerobot -trimpath
1684+
go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
16851685
# x64 Linux 平台 如各种云服务器
1686-
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o zerobot -trimpath
1686+
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
16871687
# x64 Windows 平台 如大多数家用电脑
1688-
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o zerobot.exe -trimpath
1688+
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w -checklinkname=0" -o zerobot.exe -trimpath
16891689
# armv6 Linux 平台 如树莓派 zero W
1690-
GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot -trimpath
1690+
GOOS=linux GOARCH=arm GOARM=6 CGO_ENABLED=0 go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
16911691
# (由于引入了github.com/fumiama/sqlite3,本项不再可用)mips Linux 平台 如 路由器 wndr4300
1692-
GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -ldflags "-s -w" -o zerobot -trimpath
1692+
GOOS=linux GOARCH=mips GOMIPS=softfloat CGO_ENABLED=0 go build -ldflags "-s -w -checklinkname=0" -o zerobot -trimpath
16931693
```
16941694

16951695
5. 运行 OneBot 框架,并同时运行本插件

0 commit comments

Comments
 (0)