Skip to content

Commit

Permalink
scripts to build release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
lnproxy committed Jun 1, 2023
1 parent ac94e37 commit 3585246
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/http-relay/release/default.do
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions cmd/http-relay/release/default.txt.do
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions cmd/http-relay/release/release.do
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh -e
hash=`git rev-parse --verify --short HEAD`
redo-ifchange manifest-$hash.txt
echo $hash

0 comments on commit 3585246

Please sign in to comment.