14 lines
300 B
Bash
14 lines
300 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
set -euo pipefail
|
||
|
|
||
|
VERSION=`cat Cargo.toml | grep "^version =" | sed -r 's/^version = "(.+)"$/\1/'`
|
||
|
|
||
|
mkdir -p dist
|
||
|
cp ../target/release/file-service dist
|
||
|
cp ../target/release/auth-cli dist
|
||
|
strip dist/file-service
|
||
|
strip dist/auth-cli
|
||
|
tar -cf file-service-${VERSION}.tar.gz dist/
|
||
|
|