Skip to content

Commit

Permalink
Merge pull request #1 from anjannath/main
Browse files Browse the repository at this point in the history
Add versioning using resource file
  • Loading branch information
cfergeau authored Nov 2, 2023
2 parents 10f3bf6 + b22df86 commit 725eb13
Show file tree
Hide file tree
Showing 105 changed files with 22,874 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.syso
bin/*
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
.PHONY: build
build: win32-background-launcher

TOOLS_DIR := tools
include tools/tools.mk

VERSION := 0.0.0.1

# win32-background-launcher is compiled as a windows GUI to support backgrounding
.PHONY: win32-background-launcher
win32-background-launcher:
win32-background-launcher: $(TOOLS_BINDIR)/go-winres
GOOS=windows ./tools/bin/go-winres simply --file-version $(VERSION) --product-name "Red Hat OpenShift Local Background Launcher"
GOOS=windows go build -ldflags -H=windowsgui -o bin/win32-background-launcher.exe ./

.PHONY: vendor
vendor: vendor-tools
go mod tidy
go mod vendor
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/cfergeau/win32-background-launcher
module github.com/crc-org/win32-background-launcher

go 1.20
1 change: 1 addition & 0 deletions tools/bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go-winres*
8 changes: 8 additions & 0 deletions tools/dummy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file is not meant to be built, it's just a placeholder to ensure
// the source for the various tools that we use is properly referenced in go.mod
// and vendored in vendor/
package buildtools

import (
_ "github.com/tc-hib/go-winres"
)
14 changes: 14 additions & 0 deletions tools/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module github.com/crc-org/win32-background-launcher/tools

go 1.20

require github.com/tc-hib/go-winres v0.3.1

require (
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/tc-hib/winres v0.1.6 // indirect
github.com/urfave/cli/v2 v2.3.0 // indirect
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb // indirect
)
23 changes: 23 additions & 0 deletions tools/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ=
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/tc-hib/go-winres v0.3.1 h1:9r67V7Ep34yyx8SL716BzcKePRvEBOjan47SmMnxEdE=
github.com/tc-hib/go-winres v0.3.1/go.mod h1:lTPf0MW3eu6rmvMyLrPXSy6xsSz4t5dRxB7dc5YFP6k=
github.com/tc-hib/winres v0.1.6 h1:qgsYHze+BxQPEYilxIz/KCQGaClvI2+yLBAZs+3+0B8=
github.com/tc-hib/winres v0.1.6/go.mod h1:pe6dOR40VOrGz8PkzreVKNvEKnlE8t4yR8A8naL+t7A=
github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M=
github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI=
golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb h1:fqpd0EBDzlHRCjiphRR5Zo/RSWWQlWv34418dnEixWk=
golang.org/x/image v0.0.0-20210220032944-ac19c3e999fb/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
8 changes: 8 additions & 0 deletions tools/tools.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TOOLS_BINDIR = $(realpath $(TOOLS_DIR)/bin)

$(TOOLS_BINDIR)/go-winres: $(TOOLS_DIR)/go.mod
cd $(TOOLS_DIR) && GOBIN="$(TOOLS_BINDIR)" go install github.com/tc-hib/go-winres

.PHONY: vendor-tools
vendor-tools:
cd $(TOOLS_DIR) && go mod tidy && go mod vendor
21 changes: 21 additions & 0 deletions tools/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions tools/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 725eb13

Please sign in to comment.