refactor: replace go-bindata with native embed package

Signed-off-by: muicoder <muicoder@gmail.com>
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
muicoder
2025-07-29 15:50:35 +08:00
committed by Vitor Savian
parent ab0f5e00a2
commit 6f16773c1a
15 changed files with 77 additions and 348 deletions

View File

@@ -79,6 +79,7 @@ LDFLAGS="
"
TAGS="urfave_cli_no_docs"
STATIC="-extldflags '-static'"
cp -av build/data/* pkg/data/embed/
CGO_ENABLED=0 "${GO}" build -tags "$TAGS" -buildvcs=false -ldflags "$LDFLAGS $STATIC" -o ${CMD_NAME} ./cmd/k3s
stat ${CMD_NAME}