فهرست منبع

hack/make: remove autogen resources for Docker CLI

the files used by the docker cli were moved to the docker/cli repository,
so are no longer needed here.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 5 سال پیش
والد
کامیت
f2498e21c4

+ 1 - 4
hack/make/.go-autogen

@@ -44,8 +44,7 @@ DVEOF
 
 
 # Compile the Windows resources into the sources
 # Compile the Windows resources into the sources
 if [ "$(go env GOOS)" = "windows" ]; then
 if [ "$(go env GOOS)" = "windows" ]; then
-	mkdir -p autogen/winresources/tmp autogen/winresources/docker autogen/winresources/dockerd
-	cp hack/make/.resources-windows/resources.go autogen/winresources/docker/
+	mkdir -p autogen/winresources/tmp autogen/winresources/dockerd
 	cp hack/make/.resources-windows/resources.go autogen/winresources/dockerd/
 	cp hack/make/.resources-windows/resources.go autogen/winresources/dockerd/
 
 
 	if [ "$(go env GOHOSTOS)" == "windows" ]; then
 	if [ "$(go env GOHOSTOS)" == "windows" ]; then
@@ -81,8 +80,6 @@ if [ "$(go env GOOS)" = "windows" ]; then
 		-h autogen/winresources/tmp \
 		-h autogen/winresources/tmp \
 		-r autogen/winresources/tmp
 		-r autogen/winresources/tmp
 
 
-	makeres docker.rc pe-x86-64 autogen/winresources/docker/rsrc_amd64.syso
-	makeres docker.rc pe-i386 autogen/winresources/docker/rsrc_386.syso
 	makeres dockerd.rc pe-x86-64 autogen/winresources/dockerd/rsrc_amd64.syso
 	makeres dockerd.rc pe-x86-64 autogen/winresources/dockerd/rsrc_amd64.syso
 
 
 	rm -r autogen/winresources/tmp
 	rm -r autogen/winresources/tmp

+ 0 - 8
hack/make/.go-autogen.ps1

@@ -60,9 +60,7 @@ const (
     [System.IO.File]::WriteAllText($outputFile, $fileContents, (New-Object System.Text.UTF8Encoding($False)))
     [System.IO.File]::WriteAllText($outputFile, $fileContents, (New-Object System.Text.UTF8Encoding($False)))
 
 
     New-Item -ItemType Directory -Path "autogen\winresources\tmp" | Out-Null
     New-Item -ItemType Directory -Path "autogen\winresources\tmp" | Out-Null
-    New-Item -ItemType Directory -Path "autogen\winresources\docker" | Out-Null
     New-Item -ItemType Directory -Path "autogen\winresources\dockerd" | Out-Null
     New-Item -ItemType Directory -Path "autogen\winresources\dockerd" | Out-Null
-    Copy-Item "hack\make\.resources-windows\resources.go" "autogen\winresources\docker"
     Copy-Item "hack\make\.resources-windows\resources.go" "autogen\winresources\dockerd"
     Copy-Item "hack\make\.resources-windows\resources.go" "autogen\winresources\dockerd"
 
 
     # Generate a version in the form major,minor,patch,build
     # Generate a version in the form major,minor,patch,build
@@ -77,12 +75,6 @@ const (
     $env:_ag_dockerVersion=$DockerVersion
     $env:_ag_dockerVersion=$DockerVersion
     $env:_ag_gitCommit=$CommitString
     $env:_ag_gitCommit=$CommitString
 
 
-    windres -i hack/make/.resources-windows/docker.rc  -o autogen/winresources/docker/rsrc_amd64.syso  -F pe-x86-64 --use-temp-file -I autogen/winresources/tmp -D DOCKER_VERSION_QUAD=$versionQuad --% -D DOCKER_VERSION=\"%_ag_dockerVersion%\" -D DOCKER_COMMIT=\"%_ag_gitCommit%\"
-    if ($LASTEXITCODE -ne 0) { Throw "Failed to compile client 64-bit resources" }
-
-    windres -i hack/make/.resources-windows/docker.rc  -o autogen/winresources/docker/rsrc_386.syso    -F pe-i386   --use-temp-file -I autogen/winresources/tmp -D DOCKER_VERSION_QUAD=$versionQuad --% -D DOCKER_VERSION=\"%_ag_dockerVersion%\" -D DOCKER_COMMIT=\"%_ag_gitCommit%\"
-    if ($LASTEXITCODE -ne 0) { Throw "Failed to compile client 32-bit resources" }
-
     windres -i hack/make/.resources-windows/dockerd.rc -o autogen/winresources/dockerd/rsrc_amd64.syso -F pe-x86-64 --use-temp-file -I autogen/winresources/tmp -D DOCKER_VERSION_QUAD=$versionQuad --% -D DOCKER_VERSION=\"%_ag_dockerVersion%\" -D DOCKER_COMMIT=\"%_ag_gitCommit%\"
     windres -i hack/make/.resources-windows/dockerd.rc -o autogen/winresources/dockerd/rsrc_amd64.syso -F pe-x86-64 --use-temp-file -I autogen/winresources/tmp -D DOCKER_VERSION_QUAD=$versionQuad --% -D DOCKER_VERSION=\"%_ag_dockerVersion%\" -D DOCKER_COMMIT=\"%_ag_gitCommit%\"
     if ($LASTEXITCODE -ne 0) { Throw "Failed to compile daemon resources" }
     if ($LASTEXITCODE -ne 0) { Throw "Failed to compile daemon resources" }
 }
 }

+ 2 - 2
hack/make/.resources-windows/common.rc

@@ -1,8 +1,8 @@
 // Application icon
 // Application icon
-1 ICON "docker.ico"
+1 ICON "dockerd.ico"
 
 
 // Windows executable manifest
 // Windows executable manifest
-1 24 /* RT_MANIFEST */ "docker.exe.manifest"
+1 24 /* RT_MANIFEST */ "dockerd.exe.manifest"
 
 
 // Version information
 // Version information
 1 VERSIONINFO
 1 VERSIONINFO

+ 0 - 3
hack/make/.resources-windows/docker.rc

@@ -1,3 +0,0 @@
-#define DOCKER_NAME "Docker Client"
-
-#include "common.rc"

+ 0 - 0
hack/make/.resources-windows/docker.exe.manifest → hack/make/.resources-windows/dockerd.exe.manifest


+ 0 - 0
hack/make/.resources-windows/docker.ico → hack/make/.resources-windows/dockerd.ico


+ 0 - 0
hack/make/.resources-windows/docker.png → hack/make/.resources-windows/dockerd.png


+ 1 - 1
hack/make/.resources-windows/resources.go

@@ -1,6 +1,6 @@
 /*
 /*
 
 
-Package winresources is used to embed Windows resources into docker.exe.
+Package winresources is used to embed Windows resources into dockerd.exe.
 These resources are used to provide
 These resources are used to provide
 
 
     * Version information
     * Version information