monorepo/dashboard/dist.sh

13 lines
260 B
Bash
Raw Permalink Normal View History

2023-08-18 00:54:05 +00:00
#!/usr/bin/env bash
set -euo pipefail
VERSION=`cat Cargo.toml | grep "^version =" | sed -r 's/^version = "(.+)"$/\1/'`
2023-08-18 00:54:05 +00:00
mkdir -p dist
cp dashboard.desktop dist
cp ../target/release/dashboard dist
strip dist/dashboard
tar -czf dashboard-${VERSION}.tgz dist/
2023-08-18 00:54:05 +00:00