From 2422207d42737287b43c1c02aabde7f3b84da39d Mon Sep 17 00:00:00 2001 From: _ <> Date: Thu, 28 Jan 2021 23:39:59 +0000 Subject: [PATCH] :package: build: make build script more machine-friendly --- build_ptth_server.bash | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build_ptth_server.bash b/build_ptth_server.bash index 46a35e8..fda23e5 100755 --- a/build_ptth_server.bash +++ b/build_ptth_server.bash @@ -18,10 +18,12 @@ mkdir "$DEST" cargo build --release -p ptth_server -cp target/release/ptth_server "$DEST/ptth_server" mkdir -p "$DEST/handlebars/server" rsync -rv handlebars/server/ "$DEST/handlebars/server/" -pushd "$TEMP_GIBBERISH" > /dev/null - tar -cvzf "ptth_$(date +%Y_%m%b_%d).tar.gz" ptth/ -popd > /dev/null +cp target/release/ptth_server "$DEST/ptth_server" + +( +cd "$TEMP_GIBBERISH" || exit +tar -cf "ptth_server.tar" ptth/ +)