aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-24 11:56:19 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-24 11:56:19 -0700
commit66ad43041a8b7773fa0cef2f0ece8d9af73499dd (patch)
treec89be1778d1fb971182e6c5fec8d962d855222f4 /rust
parent45feb0dd29a487eb4119aece77a23b6894b54841 (diff)
parent6066628a58b2446e124b3778642130599616d96d (diff)
downloadfatcat-66ad43041a8b7773fa0cef2f0ece8d9af73499dd.tar.gz
fatcat-66ad43041a8b7773fa0cef2f0ece8d9af73499dd.zip
Merge branch 'bnewbold-build-artifacts'
Diffstat (limited to 'rust')
-rw-r--r--rust/.gitignore2
-rwxr-xr-xrust/build_tarball.sh10
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