cmd: fix winresources and move them out cli package

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
Kevin Alvarez
2025-06-26 15:46:41 +02:00
committed by CrazyMax
parent ee49437e38
commit 0ea20c9f72
13 changed files with 18 additions and 33 deletions

View File

@@ -1 +0,0 @@
package builtins

View File

@@ -1,5 +0,0 @@
//go:generate go-winres make --arch=386,amd64,arm,arm64 --in=../../../cli/winresources/dockerd/winres.json --out=../../../cli/winresources/dockerd/resource
package builtins
import _ "github.com/docker/docker/cli/winresources/dockerd"

View File

@@ -11,8 +11,6 @@ import (
"github.com/moby/term"
"github.com/docker/docker/daemon/command"
_ "github.com/docker/docker/cmd/dockerd/builtins"
)
func main() {

View File

@@ -0,0 +1,5 @@
//go:generate go-winres make --arch=386,amd64,arm,arm64 --in=./winresources/winres.json --out=./resource
package main
import _ "github.com/docker/docker/cmd/dockerd/winresources"

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

View File

@@ -0,0 +1,39 @@
MessageId=1
Language=English
%1
.
MessageId=2
Language=English
debug: %1
.
MessageId=3
Language=English
panic: %1
.
MessageId=4
Language=English
fatal: %1
.
MessageId=11
Language=English
%1 [%2]
.
MessageId=12
Language=English
debug: %1 [%2]
.
MessageId=13
Language=English
panic: %1 [%2]
.
MessageId=14
Language=English
fatal: %1 [%2]
.

View File

@@ -0,0 +1,12 @@
// Package winresources is used to embed Windows resources into dockerd.exe.
//
// These resources are used to provide:
// * Version information
// * An icon
// * A Windows manifest declaring Windows version support
// * Events message table
//
// The resource object files are generated when building with go-winres
// in hack/make/.go-autogen. This occurs automatically when you cross build
// against Windows OS.
package winresources