Skip to content

Commit

Permalink
Add binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
James Alseth committed Jun 22, 2021
1 parent eae6fea commit 84a0d44
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
UNAME := $(shell uname)

.PHONY: build
build:
go build -ldflags "-w -s" -o build/yubihsm-parse-attestation .

.PHONY: build-xp
build-xp:
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_darwin_amd64
GOOS=darwin GOARCH=arm64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_darwin_arm64
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_linux_amd64
GOOS=linux GOARCH=arm64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_linux_arm64
GOOS=windows GOARCH=amd64 go build -ldflags "-w -s" -o build/yubihsm-parse-attestation_windows_amd64.exe

.PHONY: release
release: build-xp
ifeq ($(UNAME), Darwin)
cd build && shasum -a 256 yubihsm-parse-attestation_*64* > sha256sums
else
cd build && sha256sum yubihsm-parse-attestation_*64* > sha256sums
endif
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Parses the custom extensions on YubiHSM 2 attestation certificates and displays

## Installation

Binaries are available on the [Releases](https://github.com/YubicoLabs/yubihsm-parse-attestation/releases) page. You can also install from source using the command below.

```
go install github.com/YubicoLabs/yubihsm-parse-attestation@latest
```
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at

// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0

// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down

0 comments on commit 84a0d44

Please sign in to comment.