2023-10-04 00:18:41 +00:00
|
|
|
#!/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
|
2023-10-05 16:29:19 +00:00
|
|
|
tar -czf file-service-${VERSION}.tgz dist/
|
2023-10-04 00:18:41 +00:00
|
|
|
|