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