mirror of
https://github.com/moby/moby.git
synced 2026-01-11 10:41:43 +00:00
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:
@@ -1 +0,0 @@
|
||||
package builtins
|
||||
@@ -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"
|
||||
@@ -11,8 +11,6 @@ import (
|
||||
"github.com/moby/term"
|
||||
|
||||
"github.com/docker/docker/daemon/command"
|
||||
|
||||
_ "github.com/docker/docker/cmd/dockerd/builtins"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
5
cmd/dockerd/main_windows.go
Normal file
5
cmd/dockerd/main_windows.go
Normal 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"
|
||||
BIN
cmd/dockerd/winresources/docker.ico
Normal file
BIN
cmd/dockerd/winresources/docker.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 100 KiB |
BIN
cmd/dockerd/winresources/event_messages.bin
Normal file
BIN
cmd/dockerd/winresources/event_messages.bin
Normal file
Binary file not shown.
39
cmd/dockerd/winresources/event_messages.mc
Normal file
39
cmd/dockerd/winresources/event_messages.mc
Normal 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]
|
||||
.
|
||||
12
cmd/dockerd/winresources/winresources.go
Normal file
12
cmd/dockerd/winresources/winresources.go
Normal 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
|
||||
Reference in New Issue
Block a user