📦 build: make build script more machine-friendly
parent
5e18bf8ace
commit
2422207d42
|
@ -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/
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue