Files
ngzz-mc/cmd/client/main.go

23 lines
749 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//go:build !gl
// 年糕历险记 —— 客户端入口(无 GL 构建:提示需要 C 工具链)。
//
// 渲染层internal/render需要 CGOGLFW/OpenGL未启用 gl 构建标签时
// 客户端只打印提示。完整客户端见 client_gl.go-tags gl
package main
import (
"flag"
"fmt"
)
var devMode = flag.Bool("dev", devDefault, "开发模式:直接读取 assets/(默认随构建 tag")
func main() {
flag.Parse()
fmt.Println("年糕历险记 客户端:本构建未启用 GL 渲染。")
fmt.Println("请先准备 C 工具链tools/zig 或 mingw-w64然后用以下方式构建")
fmt.Println(" go build -tags \"gl dev\" ./cmd/client")
fmt.Println("或直接运行 scripts/build.ps1。")
}