-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·28 lines (21 loc) · 812 Bytes
/
build.sh
File metadata and controls
executable file
·28 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh
tkey_libs_version="v0.0.1"
signer_version="v0.0.7"
printf "Building tkey-libs with version: %s\n" "$tkey_libs_version"
printf "Building signer with version: %s\n" "$signer_version"
if [ -d ../tkey-libs ]
then
(cd ../tkey-libs; git checkout main; git pull; git checkout "$tkey_libs_version")
else
git clone -b "$tkey_libs_version" https://github.com/tillitis/tkey-libs.git ../tkey-libs
fi
if [ -d ../tkey-device-signer ]
then
(cd ../tkey-device-signer; git checkout main; git pull; git checkout "$signer_version")
else
git clone -b "$signer_version" https://github.com/tillitis/tkey-device-signer.git ../tkey-device-signer
fi
make -j -C ../tkey-libs
make -j -C ../tkey-device-signer
cp ../tkey-device-signer/signer/app.bin cmd/tkey-ssh-agent/signer.bin-${signer_version}
make -j