diff --git a/cmd/http-relay/release/default.do b/cmd/http-relay/release/default.do new file mode 100755 index 0000000..0cdf8ec --- /dev/null +++ b/cmd/http-relay/release/default.do @@ -0,0 +1,4 @@ +#!/bin/sh -e +os=$(echo $1 | cut -f4 -d-) +arch=$(echo $1 | cut -f5 -d-) +GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build -o $3 -a ../main.go diff --git a/cmd/http-relay/release/default.txt.do b/cmd/http-relay/release/default.txt.do new file mode 100755 index 0000000..6bb51eb --- /dev/null +++ b/cmd/http-relay/release/default.txt.do @@ -0,0 +1,11 @@ +#!/bin/sh -e +hash=`git rev-parse --verify --short HEAD` +redo-ifchange \ + lnproxy-http-relay-openbsd-amd64-$hash \ + lnproxy-http-relay-linux-amd64-$hash \ + lnproxy-http-relay-darwin-amd64-$hash + +sha256sum \ + lnproxy-http-relay-openbsd-amd64-$hash \ + lnproxy-http-relay-linux-amd64-$hash \ + lnproxy-http-relay-darwin-amd64-$hash diff --git a/cmd/http-relay/release/release.do b/cmd/http-relay/release/release.do new file mode 100755 index 0000000..766f055 --- /dev/null +++ b/cmd/http-relay/release/release.do @@ -0,0 +1,4 @@ +#!/bin/sh -e +hash=`git rev-parse --verify --short HEAD` +redo-ifchange manifest-$hash.txt +echo $hash