mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
all: include file information in Windows builds
This commit is contained in:
committed by
Cuong Manh Le
parent
5d65416227
commit
67d74774a9
9
.gitignore
vendored
9
.gitignore
vendored
@@ -3,3 +3,12 @@ gon.hcl
|
|||||||
|
|
||||||
/Build
|
/Build
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Release folder
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# Binaries
|
||||||
|
ctrld-*
|
||||||
|
|
||||||
|
# generated file
|
||||||
|
cmd/cli/rsrc_*.syso
|
||||||
|
|||||||
20
cmd/cli/winres/winres.json
Normal file
20
cmd/cli/winres/winres.json
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
{
|
||||||
|
"RT_VERSION": {
|
||||||
|
"#1": {
|
||||||
|
"0000": {
|
||||||
|
"fixed": {
|
||||||
|
"file_version": "0.0.0.1"
|
||||||
|
},
|
||||||
|
"info": {
|
||||||
|
"0409": {
|
||||||
|
"CompanyName": "ControlD Inc",
|
||||||
|
"FileDescription": "Control D DNS daemon",
|
||||||
|
"ProductName": "ctrld",
|
||||||
|
"InternalName": "ctrld",
|
||||||
|
"LegalCopyright": "ControlD Inc 2024"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
cmd/cli/winres_windows.go
Normal file
4
cmd/cli/winres_windows.go
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
//go:generate go-winres make --product-version=git-tag --file-version=git-tag
|
||||||
|
package cli
|
||||||
|
|
||||||
|
// Placeholder file for windows builds.
|
||||||
@@ -72,6 +72,7 @@ build() {
|
|||||||
if [ "$CGO_ENABLED" = "0" ]; then
|
if [ "$CGO_ENABLED" = "0" ]; then
|
||||||
binary=${binary}-nocgo
|
binary=${binary}-nocgo
|
||||||
fi
|
fi
|
||||||
|
GOOS=${goos} GOARCH=${goarch} GOARM=${3} "$go" generate ./...
|
||||||
GOOS=${goos} GOARCH=${goarch} GOARM=${3} "$go" build -ldflags="$ldflags" -o "$binary" ./cmd/ctrld
|
GOOS=${goos} GOARCH=${goarch} GOARM=${3} "$go" build -ldflags="$ldflags" -o "$binary" ./cmd/ctrld
|
||||||
compress "$binary"
|
compress "$binary"
|
||||||
;;
|
;;
|
||||||
@@ -81,6 +82,7 @@ build() {
|
|||||||
if [ "$CGO_ENABLED" = "0" ]; then
|
if [ "$CGO_ENABLED" = "0" ]; then
|
||||||
binary=${binary}-nocgo
|
binary=${binary}-nocgo
|
||||||
fi
|
fi
|
||||||
|
GOOS=${goos} GOARCH=${goarch} GOMIPS=softfloat "$go" generate ./...
|
||||||
GOOS=${goos} GOARCH=${goarch} GOMIPS=softfloat "$go" build -ldflags="$ldflags" -o "$binary" ./cmd/ctrld
|
GOOS=${goos} GOARCH=${goarch} GOMIPS=softfloat "$go" build -ldflags="$ldflags" -o "$binary" ./cmd/ctrld
|
||||||
compress "$binary"
|
compress "$binary"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user