neveko/scripts/build_release.sh

27 lines
1 KiB
Bash
Raw Normal View History

2023-05-01 13:34:05 +00:00
#!/bin/bash
2023-06-03 14:17:58 +00:00
# Build neveko release
# Run from the neveko root
2023-05-05 07:57:24 +00:00
# usage: ./scripts/build_release vX.X.X-ver
2023-05-01 13:34:05 +00:00
2023-05-02 07:07:45 +00:00
# Linux x86_64 output directory
LINUX_X86_64="x86_64-linux-gnu"
2023-06-03 14:17:58 +00:00
RELEASE_NAME="neveko-$LINUX_X86_64-$1"
2023-05-02 07:07:45 +00:00
LINUX_OUTPUT_DIR=".build/release/$RELEASE_NAME"
mkdir -p $LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cargo build --release
2023-06-03 14:17:58 +00:00
cp target/release/neveko $LINUX_OUTPUT_DIR
cd neveko-gui && cargo build --release && cp target/release/neveko_gui ../$LINUX_OUTPUT_DIR
2023-05-02 07:07:45 +00:00
cp -r assets/ ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-06-03 14:17:58 +00:00
cd neveko-auth && cargo build --release && cp target/release/neveko_auth ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-06-03 14:17:58 +00:00
cd neveko-contact && cargo build --release && cp target/release/neveko_contact ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-06-03 14:17:58 +00:00
cd neveko-market && cargo build --release && cp target/release/neveko_market ../$LINUX_OUTPUT_DIR
2023-05-29 10:14:01 +00:00
cd ../
2023-06-03 14:17:58 +00:00
cd neveko-message && cargo build --release && cp target/release/neveko_message ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-05-17 20:59:16 +00:00
# make the bzip for linux
2023-05-05 07:14:58 +00:00
cd .build/release/ && tar -cjf $RELEASE_NAME.tar.bz2 $RELEASE_NAME/ && mv $RELEASE_NAME.tar.bz2 ../../