📦 build: make build script more machine-friendly

main
_ 2021-01-28 23:39:59 +00:00
parent 5e18bf8ace
commit 2422207d42
1 changed files with 6 additions and 4 deletions

View File

@ -18,10 +18,12 @@ mkdir "$DEST"
cargo build --release -p ptth_server cargo build --release -p ptth_server
cp target/release/ptth_server "$DEST/ptth_server"
mkdir -p "$DEST/handlebars/server" mkdir -p "$DEST/handlebars/server"
rsync -rv handlebars/server/ "$DEST/handlebars/server/" rsync -rv handlebars/server/ "$DEST/handlebars/server/"
pushd "$TEMP_GIBBERISH" > /dev/null cp target/release/ptth_server "$DEST/ptth_server"
tar -cvzf "ptth_$(date +%Y_%m%b_%d).tar.gz" ptth/
popd > /dev/null (
cd "$TEMP_GIBBERISH" || exit
tar -cf "ptth_server.tar" ptth/
)