From 672e5aeaa1fee6c4affee4744d0f61249350ee5c Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Thu, 5 Oct 2023 12:29:19 -0400 Subject: [PATCH] Make sure the distribution scripts compress files and include version numbers --- dashboard/dist.sh | 5 +++-- file-service/dist.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dashboard/dist.sh b/dashboard/dist.sh index 5de8bd4..6947619 100755 --- a/dashboard/dist.sh +++ b/dashboard/dist.sh @@ -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/ diff --git a/file-service/dist.sh b/file-service/dist.sh index 56acf95..ce4609d 100755 --- a/file-service/dist.sh +++ b/file-service/dist.sh @@ -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/