Skip to content

Commit

Permalink
Dont sign
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmacdonald committed Mar 12, 2024
1 parent e53a7c1 commit d178ab8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 19 deletions.
22 changes: 11 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
goarch:
- amd64
ldflags:
- -s -w -X github.com/leighmacdonald/steamid/steamid/steamid.BuildVersion={{.Version}} -X github.com/leighmacdonald/steamid/steamid/steamid.BuildCommit={{.Commit}} -X github.com/leighmacdonald/steamid/steamid/steamid.BuildDate={{.Date}}
- -s -w -X github.com/leighmacdonald/steamid/steamid.BuildVersion={{.Version}} -X github.com/leighmacdonald/steamid/steamid.BuildCommit={{.Commit}} -X github.com/leighmacdonald/steamid/steamid.BuildDate={{.Date}}

nfpms:
- maintainer: Leigh MacDonald <[email protected]>
Expand Down Expand Up @@ -61,16 +61,16 @@ release:
changelog:
use: github-native

signs:
- artifacts: checksum
args:
- "--batch"
- "-u"
- "{{ .Env.GPG_FINGERPRINT }}"
- "--output"
- "${signature}"
- "--detach-sign"
- "${artifact}"
#signs:
# - artifacts: checksum
# args:
# - "--batch"
# - "-u"
# - "{{ .Env.GPG_FINGERPRINT }}"
# - "--output"
# - "${signature}"
# - "--detach-sign"
# - "${artifact}"

sboms:
- artifacts: archive
Expand Down
8 changes: 3 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,21 @@ GO_BUILD=$(GO_CMD) build
GO_CLEAN=$(GO_CMD) clean
GO_TEST=$(GO_CMD) test
GO_MOD=$(GO_CMD) mod
BINARY_NAME=steamid_cli

GO_FLAGS = -ldflags "-X 'github.com/leighmacdonald/steamid/v3/steamid.BuildVersion=`git describe --abbrev=0`'"

all: test lin win mac dist

deps:
${GO_CMD} tidy

lin:
GOOS=linux GOARCH=amd64 $(GO_BUILD) $(GO_FLAGS) -o build/linux64/steamid main.go
GOOS=linux GOARCH=amd64 $(GO_BUILD) -o build/linux64/steamid main.go

win:
GOOS=windows GOARCH=amd64 $(GO_BUILD) $(GO_FLAGS) -o build/win64/steamid.exe main.go
GOOS=windows GOARCH=amd64 $(GO_BUILD) -o build/win64/steamid.exe main.go

mac:
GOOS=darwin GOARCH=amd64 $(GO_BUILD) $(GO_FLAGS) -o build/macos64/steamid main.go
GOOS=darwin GOARCH=amd64 $(GO_BUILD) -o build/macos64/steamid main.go

dist:
zip -j steamid-`git describe --abbrev=0`-win64.zip build/win64/steamid.exe LICENSE.md
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var rootCmd = &cobra.Command{ //nolint:exhaustruct,gochecknoglobals
Short: "A library and CLI app to convert between steam id formats",
Long: `A library and CLI app to convert between steam id formats`,
// Run: func(cmd *cobra.Command, args []string) { },
Version: fmt.Sprintf("%s - %s", steamid.BuildVersion, steamid.BuildDate),
Version: fmt.Sprintf("%s - %s - %s", steamid.BuildVersion, steamid.BuildCommit, steamid.BuildDate),
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand Down
4 changes: 2 additions & 2 deletions steamid/steamid.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ var (
apiKey string //nolint:gochecknoglobals

// BuildVersion is replaced at compile time with the current tag or revision.
BuildVersion = "master" //nolint:gochecknoglobals
BuildCommit = "" //nolint:gochecknoglobals
BuildVersion = "dev" //nolint:gochecknoglobals
BuildCommit = "master" //nolint:gochecknoglobals
BuildDate = "" //nolint:gochecknoglobals
reSteam2 *regexp.Regexp //nolint:gochecknoglobals
reSteam3 *regexp.Regexp //nolint:gochecknoglobals
Expand Down

0 comments on commit d178ab8

Please sign in to comment.