Make sure the distribution scripts compress files and include version numbers

This commit is contained in:
Savanni D'Gerinel 2023-10-05 12:29:19 -04:00
parent 79219793cf
commit 672e5aeaa1
2 changed files with 4 additions and 3 deletions

View File

@ -1,11 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
set -x
VERSION=`cat Cargo.toml | grep "^version =" | sed -r 's/^version = "(.+)"$/\1/'`
mkdir -p dist
cp dashboard.desktop dist
cp ../target/release/dashboard dist
strip dist/dashboard
tar -cf dashboard.tgz dist/
tar -czf dashboard-${VERSION}.tgz dist/

View File

@ -9,5 +9,5 @@ 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/
tar -czf file-service-${VERSION}.tgz dist/