run-cli 0.0.53

A CLI to help you run any command
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# This script is run for each build target. It overrides the Go binaries with the Rust binaries in the ./artifacts directory.

set -e

# check usage
if [ $# -ne 2 ] || [ "$1" = "" ] || [ "$2" = "" ]; then
	echo "usage: $0 <rust_target> <out_dir>" >&2
	exit 1
fi
rust_target="$1"
out_dir="$2"

# overwrite go binary with rust binary
cp -vf "./artifacts/$rust_target"/* "$out_dir"