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 6c831567eb
commit 4cdd2b6b0f
1 changed files with 3 additions and 2 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 -czf dashboard.tgz dist/
tar -czf dashboard-${VERSION}.tgz dist/