diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-20 16:14:57 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-20 16:14:57 -0700 |
commit | f7de7e30399409c03ba820c9c7a33c95c38e3efa (patch) | |
tree | 16658d239ee8f80c65c6f1be9bf641f62af85c2c /rust | |
parent | ed498a60fec55f1a2f5d10907b47971696224ec1 (diff) | |
download | fatcat-f7de7e30399409c03ba820c9c7a33c95c38e3efa.tar.gz fatcat-f7de7e30399409c03ba820c9c7a33c95c38e3efa.zip |
build deployable artifacts
Diffstat (limited to 'rust')
-rw-r--r-- | rust/.gitignore | 2 | ||||
-rwxr-xr-x | rust/build_tarball.sh | 10 |
2 files changed, 12 insertions, 0 deletions
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 |