neveko/scripts/build_release.sh

27 lines
877 B
Bash
Raw Normal View History

2023-05-01 13:34:05 +00:00
#!/bin/bash
# Build nevmes release
# Run from the nevmes root
# usage: ./scripts/build_release x.x.x-ver
2023-05-02 07:07:45 +00:00
# Linux x86_64 output directory
LINUX_X86_64="x86_64-linux-gnu"
RELEASE_NAME="nevmes-$LINUX_X86_64-v$1"
LINUX_OUTPUT_DIR=".build/release/$RELEASE_NAME"
mkdir -p $LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cargo build --release
2023-05-02 07:07:45 +00:00
cp target/release/nevmes $LINUX_OUTPUT_DIR
cd nevmes-gui && cargo build --release && cp target/release/nevmes_gui ../$LINUX_OUTPUT_DIR
cp -r assets/ ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-05-02 07:07:45 +00:00
cd nevmes-auth && cargo build --release && cp target/release/nevmes_auth ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-05-02 07:07:45 +00:00
cd nevmes-contact && cargo build --release && cp target/release/nevmes_contact ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-05-02 07:07:45 +00:00
cd nevmes-message && cargo build --release && cp target/release/nevmes_message ../$LINUX_OUTPUT_DIR
2023-05-01 13:34:05 +00:00
cd ../
2023-05-02 07:07:45 +00:00
# make the bzip for linux
tar -cjf $RELEASE_NAME.tar.bz2 $LINUX_OUTPUT_DIR