File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,13 +15,14 @@ $(GORELEASER_BIN): bin
1515.PHONY : release/clean
1616release/clean :
1717 @echo " ===> $( INTEGRATION) === [release/clean] remove build metadata files"
18- rm -fv $(CURDIR ) /src/versioninfo.json
19- rm -fv $(CURDIR ) /src/resource.syso
18+ rm -fv $(CURDIR ) /winres/winres.json
19+ rm -fv $(CURDIR ) /src/rsrc_windows_386.syso
20+ rm -fv $(CURDIR ) /src/rsrc_windows_amd64.syso
2021
2122.PHONY : release/deps
2223release/deps : $(GORELEASER_BIN )
23- @echo " ===> $( INTEGRATION) === [release/deps] install goversioninfo "
24- @go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@233067e5ebdfc62d994b1446a607b40ced91907b
24+ @echo " ===> $( INTEGRATION) === [release/deps] install go-winres "
25+ @go install github.com/tc-hib/go-winres@latest
2526
2627.PHONY : release/build
2728release/build : release/deps release/clean
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ BuildVersion='0'
2424Year=$( date +" %Y" )
2525INTEGRATION_EXE=" nri-${INTEGRATION} .exe"
2626
27+ mkdir -p ./winres
28+
2729sed \
2830 -e " s/{MajorVersion}/$MajorVersion /g" \
2931 -e " s/{MinorVersion}/$MinorVersion /g" \
3234 -e " s/{Year}/$Year /g" \
3335 -e " s/{Integration}/nri-$INTEGRATION /g" \
3436 -e " s/{IntegrationExe}/$INTEGRATION_EXE /g" \
35- ./build/windows/versioninfo .json.template > ./src/versioninfo .json
37+ ./build/windows/winres .json.template > ./winres/winres .json
3638
37- go generate github.com/newrelic/nri- ${INTEGRATION} / src/
39+ go-winres make --arch 386,amd64 --out ./ src/rsrc
Original file line number Diff line number Diff line change 1+ {
2+ "RT_VERSION": {
3+ "#1": {
4+ "0000": {
5+ "fixed": {
6+ "file_version": "{MajorVersion}.{MinorVersion}.{PatchVersion}.{BuildVersion}",
7+ "product_version": "{MajorVersion}.{MinorVersion}.{PatchVersion}.{BuildVersion}"
8+ },
9+ "info": {
10+ "0409": {
11+ "Comments": "(c) {Year} New Relic, Inc.",
12+ "CompanyName": "New Relic, Inc.",
13+ "FileDescription": "",
14+ "FileVersion": "{MajorVersion}.{MinorVersion}.{PatchVersion}.{BuildVersion}",
15+ "InternalName": "{Integration}",
16+ "LegalCopyright": "(c) {Year} New Relic, Inc.",
17+ "LegalTrademarks": "",
18+ "OriginalFilename": "{IntegrationExe}",
19+ "PrivateBuild": "",
20+ "ProductName": "New Relic Infrastructure Integration, {Integration}",
21+ "ProductVersion": "{MajorVersion}.{MinorVersion}.{PatchVersion}.{BuildVersion}",
22+ "SpecialBuild": ""
23+ }
24+ }
25+ }
26+ }
27+ }
28+ }
Original file line number Diff line number Diff line change 11module github.com/newrelic/nri-f5
22
3- go 1.25.9
3+ go 1.26.2
44
55require (
66 github.com/newrelic/infra-integrations-sdk/v3 v3.9.1
Original file line number Diff line number Diff line change 1- //go:generate goversioninfo
21package main
32
43import (
You can’t perform that action at this time.
0 commit comments