Skip to content

Commit

Permalink
Add a script to package things up nicely for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfoo committed Sep 26, 2024
1 parent 86b54c1 commit 351b840
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
set -xe

version=`git describe --tags --always --dirty`
echo "Packaging ${version}..."

cargo build --release
rm -rf target/package/
mkdir -p target/package/
cp target/release/falcon_bms_callbacker.exe target/package/falcon_bms_callbacker-${version}.exe
cp config-release.toml target/package/config.toml

pushd target/package/
zip -9 falcon_bms_callbacker-${version}.zip *
popd

echo "Done."

0 comments on commit 351b840

Please sign in to comment.