From 5f1a4e7dcceed8795d6e88ed639318feb1d3bbee Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 20 Oct 2026 15:59:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=96=B0=E5=A2=9E=E5=B9=B3=E5=8F=B0):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9Elinux=20arm64=E6=A1=8C=E9=9D=A2=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ cmd/webview/{webview_linux_amd64.go => webview_linux.go} | 2 +- cmd/webview/webview_unsupported.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) rename cmd/webview/{webview_linux_amd64.go => webview_linux.go} (96%) diff --git a/README.md b/README.md index 6bb8f1f..e047868 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,10 @@ go build -o ofdgo_windows_amd64.exe -trimpath -ldflags "-H windowsgui -s -w -bui set GOOS=linux set GOARCH=amd64 go build -o ofdgo_linux_amd64 -trimpath -ldflags "-s -w -buildid=" ./cmd/webview +:: 3. 构建Linux arm64(aarch64) +set GOOS=linux +set GOARCH=arm64 +go build -o ofdgo_linux_arm64 -trimpath -ldflags "-s -w -buildid=" ./cmd/webview ``` # 安装引擎 diff --git a/cmd/webview/webview_linux_amd64.go b/cmd/webview/webview_linux.go similarity index 96% rename from cmd/webview/webview_linux_amd64.go rename to cmd/webview/webview_linux.go index d7ad304..9b0fd80 100644 --- a/cmd/webview/webview_linux_amd64.go +++ b/cmd/webview/webview_linux.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build linux && amd64 +//go:build linux && (amd64 || arm64) package main diff --git a/cmd/webview/webview_unsupported.go b/cmd/webview/webview_unsupported.go index ba6f662..4b7ca9a 100644 --- a/cmd/webview/webview_unsupported.go +++ b/cmd/webview/webview_unsupported.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build (!windows && !linux) || !amd64 +//go:build !(windows && amd64) && !(linux && (amd64 || arm64)) package main