Skip to content

Commit

Permalink
Move Go files under cmd/tkey-sign
Browse files Browse the repository at this point in the history
  • Loading branch information
mchack-work committed Oct 31, 2023
1 parent d6188b0 commit a27d407
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ TKEY_SIGN_VERSION ?= $(shell git describe --dirty --always | sed -n "s/^v\(.*\)/
# .PHONY to let go-build handle deps and rebuilds
.PHONY: tkey-sign
tkey-sign:
CGO_ENABLED=$(BUILD_CGO_ENABLED) go build -ldflags "-X main.version=$(TKEY_SIGN_VERSION) -X main.signerAppNoTouch=$(TKEY_SIGNER_APP_NO_TOUCH)" -trimpath -o tkey-sign
CGO_ENABLED=$(BUILD_CGO_ENABLED) go build -ldflags "-X main.version=$(TKEY_SIGN_VERSION) -X main.signerAppNoTouch=$(TKEY_SIGNER_APP_NO_TOUCH)" -trimpath -o tkey-sign ./cmd/tkey-sign

.PHONY: tkey-sign.exe
tkey-sign.exe:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ device app](https://github.com/tillitis/tkey-device-signer) first.

If you want to do it manually please inspect the build script, but
basically you clone the `tkey-libs` and `tkey-device-signer` repos,
build the signer, copy it to `signer.bin` here and then `make`.
build the signer, copy it's `app.bin` to `cmd/tkey-sign/signer.bin`
and run `make`.

You can install `tkey-sign` and reload the udev rules to get access to
the TKey with:
Expand Down
2 changes: 1 addition & 1 deletion build-podman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ fi
make -C ../tkey-libs podman
make -C ../tkey-device-signer podman

cp ../tkey-device-signer/signer/app.bin signer.bin
cp ../tkey-device-signer/signer/app.bin cmd/tkey-sign/signer.bin

make podman
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ fi
make -j -C ../tkey-libs
make -j -C ../tkey-device-signer

cp ../tkey-device-signer/signer/app.bin signer.bin
cp ../tkey-device-signer/signer/app.bin cmd/tkey-sign/signer.bin

make -j
File renamed without changes.
2 changes: 1 addition & 1 deletion signer.bin.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
93c8e7fba755f78d3827464408e04af3525ff28ebc8885b9065de83648bd0bc66ec9342348c08060cfb7c64bca0ec7836008c19a6e10190667e027b3802cd04f signer.bin
93c8e7fba755f78d3827464408e04af3525ff28ebc8885b9065de83648bd0bc66ec9342348c08060cfb7c64bca0ec7836008c19a6e10190667e027b3802cd04f cmd/tkey-sign/signer.bin

0 comments on commit a27d407

Please sign in to comment.