diff options
author | CrazyMax <crazy-max@users.noreply.github.com> | 2022-04-14 19:52:23 +0200 |
---|---|---|
committer | CrazyMax <crazy-max@users.noreply.github.com> | 2022-04-14 19:52:35 +0200 |
commit | fd2143e0b086931d3b5432f167a795fb4201e440 (patch) | |
tree | d179bcea065cc8969b4d6971b919e7247b8a6a38 /cli | |
parent | 61404de7df1a6c75c2cbdc2c3ce226c95bebcaad (diff) | |
download | docker-fd2143e0b086931d3b5432f167a795fb4201e440.tar.gz |
use go-winres for cross to create Windows resources
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/winresources/README.md | 0 | ||||
-rw-r--r-- | cli/winresources/docker-proxy/winresources.go | 12 | ||||
-rw-r--r-- | cli/winresources/docker.ico | bin | 0 -> 102330 bytes | |||
-rw-r--r-- | cli/winresources/dockerd/winresources.go | 12 | ||||
-rw-r--r-- | cli/winresources/event_messages.bin | bin | 0 -> 256 bytes | |||
-rw-r--r-- | cli/winresources/event_messages.mc | 39 |
6 files changed, 63 insertions, 0 deletions
diff --git a/cli/winresources/README.md b/cli/winresources/README.md new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/cli/winresources/README.md diff --git a/cli/winresources/docker-proxy/winresources.go b/cli/winresources/docker-proxy/winresources.go new file mode 100644 index 0000000000..856ded949f --- /dev/null +++ b/cli/winresources/docker-proxy/winresources.go @@ -0,0 +1,12 @@ +// Package winresources is used to embed Windows resources into docker-proxy.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 and are located in cli/winresources. +// This occurs automatically when you cross build against Windows OS. +package winresources diff --git a/cli/winresources/docker.ico b/cli/winresources/docker.ico Binary files differnew file mode 100644 index 0000000000..1d5ab4f0a9 --- /dev/null +++ b/cli/winresources/docker.ico diff --git a/cli/winresources/dockerd/winresources.go b/cli/winresources/dockerd/winresources.go new file mode 100644 index 0000000000..b71057bafe --- /dev/null +++ b/cli/winresources/dockerd/winresources.go @@ -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 and are located in cli/winresources. +// This occurs automatically when you cross build against Windows OS. +package winresources diff --git a/cli/winresources/event_messages.bin b/cli/winresources/event_messages.bin Binary files differnew file mode 100644 index 0000000000..8ca3c81969 --- /dev/null +++ b/cli/winresources/event_messages.bin diff --git a/cli/winresources/event_messages.mc b/cli/winresources/event_messages.mc new file mode 100644 index 0000000000..980107a44d --- /dev/null +++ b/cli/winresources/event_messages.mc @@ -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] +. |