encaya: Add encayagen output

pull/122/head
Jeremy Rand 3 years ago
parent 4a17661097
commit c5a5aa9c90
No known key found for this signature in database
GPG Key ID: FD7550C2EB800711

@ -13,8 +13,10 @@ mkdir -p $GOPATH/src/github.com/namecoin
tar -C $GOPATH/src/github.com/namecoin -xf [% project %]-[% c('version') %].tar.gz
mv $GOPATH/src/github.com/namecoin/encaya-[% c('version') %] $GOPATH/src/github.com/namecoin/encaya
# TODO: Remove static build ID after migrating to Go 1.13.3+
go install -ldflags '-s -buildid=' github.com/namecoin/encaya
[% FOREACH inst IN c("var/go_lib_install") %]
# TODO: Remove static build ID after migrating to Go 1.13.3+
go install -ldflags '-s -buildid=' [% inst %]
[% END %]
[% IF c("var/linux-x86_64") -%]
GOPATHBIN="${GOPATH}/bin"
@ -24,7 +26,9 @@ go install -ldflags '-s -buildid=' github.com/namecoin/encaya
ls $GOPATHBIN
cp -a $GOPATHBIN/encaya[% IF c("var/windows") %].exe[% END %] $distdir/
for x in encaya encayagen; do
cp -a $GOPATHBIN/"$x"[% IF c("var/windows") %].exe[% END %] $distdir/
done
cd $distdir
[% c('tar', {

@ -12,6 +12,9 @@ var:
- gosafetlsa
- goeasyconfig
- q
go_lib_install:
- github.com/namecoin/encaya
- github.com/namecoin/encaya/encayagen
cgo: 0
build_go_lib_pre: |
export CGO_ENABLED=[% c("var/cgo") %]

Loading…
Cancel
Save