Make sure the distribution scripts compress files and include version numbers
This commit is contained in:
parent
79219793cf
commit
672e5aeaa1
|
@ -1,11 +1,12 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
|
||||||
|
VERSION=`cat Cargo.toml | grep "^version =" | sed -r 's/^version = "(.+)"$/\1/'`
|
||||||
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
cp dashboard.desktop dist
|
cp dashboard.desktop dist
|
||||||
cp ../target/release/dashboard dist
|
cp ../target/release/dashboard dist
|
||||||
strip dist/dashboard
|
strip dist/dashboard
|
||||||
tar -cf dashboard.tgz dist/
|
tar -czf dashboard-${VERSION}.tgz dist/
|
||||||
|
|
||||||
|
|
|
@ -9,5 +9,5 @@ cp ../target/release/file-service dist
|
||||||
cp ../target/release/auth-cli dist
|
cp ../target/release/auth-cli dist
|
||||||
strip dist/file-service
|
strip dist/file-service
|
||||||
strip dist/auth-cli
|
strip dist/auth-cli
|
||||||
tar -cf file-service-${VERSION}.tar.gz dist/
|
tar -czf file-service-${VERSION}.tgz dist/
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue