mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
docs(构建指南): 新增原生桌面linux amd64构建说明
This commit is contained in:
1 parent
6b0332224f
commit
d9fb144e35
1 file changed
+6
@@ -64,9 +64,15 @@ go build -o ofdgo_webui.exe -trimpath -ldflags "-s -w -buildid=" ./cmd/webui/web
|
|||||||
|
|
||||||
# 原生桌面
|
# 原生桌面
|
||||||
```batch
|
```batch
|
||||||
|
:: 1. 构建Windows amd64(x64/x86_64)
|
||||||
|
set CGO_ENABLED=0
|
||||||
set GOOS=windows
|
set GOOS=windows
|
||||||
set GOARCH=amd64
|
set GOARCH=amd64
|
||||||
go build -o ofdgo_windows_amd64.exe -trimpath -ldflags "-H windowsgui -s -w -buildid=" ./cmd/webview
|
go build -o ofdgo_windows_amd64.exe -trimpath -ldflags "-H windowsgui -s -w -buildid=" ./cmd/webview
|
||||||
|
:: 2. 构建Linux amd64(x64/x86_64)
|
||||||
|
set GOOS=linux
|
||||||
|
set GOARCH=amd64
|
||||||
|
go build -o ofdgo_linux_amd64 -trimpath -ldflags "-s -w -buildid=" ./cmd/webview
|
||||||
```
|
```
|
||||||
|
|
||||||
# 安装引擎
|
# 安装引擎
|
||||||
|
|||||||
Reference in new issue
Block a user