move winresources into cmd/docker

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-03-08 21:37:42 +01:00
parent 2eec74659e
commit 44e5100232
11 changed files with 17 additions and 17 deletions

View File

@ -21,7 +21,7 @@ VERSION_QUAD=$(printf "%s" "$VERSION" | sed -re 's/^([0-9.]*).*$/\1/' | sed -re
# Microsoft Windows Version Information and an icon using goversioninfo.
# https://docs.microsoft.com/en-us/windows/win32/menurc/stringfileinfo-block
# https://github.com/josephspurrier/goversioninfo/blob/master/testdata/resource/versioninfo.json
cat > ./cli/winresources/versioninfo.json <<EOL
cat > ./cmd/docker/winresources/versioninfo.json <<EOL
{
"FixedFileInfo":
{
@ -61,9 +61,9 @@ cat > ./cli/winresources/versioninfo.json <<EOL
}
}
EOL
(set -x ; cat ./cli/winresources/versioninfo.json)
(set -x ; cat ./cmd/docker/winresources/versioninfo.json)
# Create winresources package stub if removed while using tmpfs in Dockerfile
if [ ! -f "./cli/winresources/winresources.go" ]; then
echo "package winresources" > "./cli/winresources/winresources.go"
if [ ! -f "./cmd/docker/winresources/winresources.go" ]; then
echo "package winresources" > "./cmd/docker/winresources/winresources.go"
fi