Browse Source

goversioninfo from cmdline

Matthew R. Kasun 3 years ago
parent
commit
3a2e9ec18e
1 changed files with 4 additions and 3 deletions
  1. 4 3
      .github/workflows/buildandrelease.yml

+ 4 - 3
.github/workflows/buildandrelease.yml

@@ -447,9 +447,10 @@ jobs:
           cd netclient
           cd netclient
           which go
           which go
           go get github.com/josephspurrier/goversioninfo
           go get github.com/josephspurrier/goversioninfo
-          ls /c/Users/runneradmin/go/bin
-          ls c/hostedtoolcache/windows/go/1.18.1/x64/bin
-          find . -name goversioninfo 
+          go install github.com/josephspurrier/goversioninfo
+          ls /c/Users/runneradmin/go/bin/
+          /c/Users/runneradmin/go/bin/goversioninfo -icon=windowsdata/resource/netclient.ico -manifest=netclient.exe.manifest.xml -64=true -o=netclient.syso 
+          ls
           go generate
           go generate
           ls
           ls
           env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient.exe main.go
           env CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -tags=gui -ldflags="-X 'main.version=${NETMAKER_VERSION}'" -o build/netclient.exe main.go