Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions bin/build-all.sh

This file was deleted.

27 changes: 27 additions & 0 deletions bin/release-binaries.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash

set -eu
set -o pipefail

function run() {
local arch os output
arch="${1:?Please provide an architecture}"
os="${2:?Please provide an OS}"
version="${3:?Please provide a version}"
output="${4:?Please provide an output directory}"

local binary tarball
binary="rtr-${os}-${arch}"
tarball="${binary}.tgz"

GOARCH="${arch}" GOOS="${os}" \
go build \
-o "${output}/${binary}" \
-ldflags "-X main.version=${version}"

tar -czvf "${output}/${tarball}" -C "${output}" "${binary}"

rm "${output}/${binary}"
}

run "$@"
13 changes: 0 additions & 13 deletions bin/release.sh

This file was deleted.