From 358524623f1f24620a83b48c910c252542649159 Mon Sep 17 00:00:00 2001 From: anon <109770337+lnproxy@users.noreply.github.com> Date: Thu, 1 Jun 2023 00:52:02 +0000 Subject: [PATCH] scripts to build release binaries --- cmd/http-relay/release/default.do | 4 ++++ cmd/http-relay/release/default.txt.do | 11 +++++++++++ cmd/http-relay/release/release.do | 4 ++++ 3 files changed, 19 insertions(+) create mode 100755 cmd/http-relay/release/default.do create mode 100755 cmd/http-relay/release/default.txt.do create mode 100755 cmd/http-relay/release/release.do 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