From f7de7e30399409c03ba820c9c7a33c95c38e3efa Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 20 Jun 2019 16:14:57 -0700 Subject: build deployable artifacts --- rust/.gitignore | 2 ++ rust/build_tarball.sh | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100755 rust/build_tarball.sh (limited to 'rust') diff --git a/rust/.gitignore b/rust/.gitignore index a2068a8a..03e50598 100644 --- a/rust/.gitignore +++ b/rust/.gitignore @@ -1,4 +1,6 @@ .env target/ +bin/ +fatcat-*.tar.gz !.cargo diff --git a/rust/build_tarball.sh b/rust/build_tarball.sh new file mode 100755 index 00000000..9eed2566 --- /dev/null +++ b/rust/build_tarball.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -e -u -o pipefail + +cargo build --release +mkdir -p ./bin/ +cp target/release/{fatcatd,fatcat-auth,fatcat-export} bin + +rm -f fatcat-rust.tar.gz +tar czf fatcat-rust.tar.gz bin migrations README.md example.env -- cgit v1.2.3