fix(player): fix go build ldflags parsing on Windows

Split "-ldflags=-s -w" into separate "-ldflags" and "-s -w" args
so that "-w" is not misinterpreted as a go build flag when shell
mode is enabled on Windows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
caorushizi
2026-04-02 19:05:27 +08:00
parent 38a4f63269
commit 5349295df8
+2 -1
View File
@@ -54,7 +54,8 @@ export async function buildServerTask() {
await runCommand("go", [
"build",
"-trimpath",
"-ldflags=-s -w",
"-ldflags",
"-s -w",
"-o",
SERVER_BINARY_PATH,
"./cmd/server",