From 6a79a5271b57859b503e05ca04647b32676f964a Mon Sep 17 00:00:00 2001 From: creating2morrow Date: Tue, 2 May 2023 03:07:45 -0400 Subject: [PATCH] update build_release.sh --- .gitignore | 1 + Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- nevmes-auth/Cargo.lock | 4 ++-- nevmes-auth/Cargo.toml | 2 +- nevmes-contact/Cargo.lock | 4 ++-- nevmes-contact/Cargo.toml | 2 +- nevmes-core/Cargo.toml | 2 +- nevmes-gui/Cargo.lock | 4 ++-- nevmes-gui/Cargo.toml | 2 +- nevmes-gui/src/main.rs | 2 +- nevmes-message/Cargo.lock | 4 ++-- nevmes-message/Cargo.toml | 2 +- scripts/build_release.sh | 24 ++++++++++++++++-------- 14 files changed, 38 insertions(+), 29 deletions(-) diff --git a/.gitignore b/.gitignore index e55ba96..0ac238f 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ genkey-batch monero-wallet-rpc.log notes.txt .vscode/settings.json +.bz2 \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index c510d16..6565d11 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2019,7 +2019,7 @@ dependencies = [ [[package]] name = "nevmes" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "nevmes_auth", @@ -2032,7 +2032,7 @@ dependencies = [ [[package]] name = "nevmes_auth" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "log 0.4.17", @@ -2042,7 +2042,7 @@ dependencies = [ [[package]] name = "nevmes_contact" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "log 0.4.17", @@ -2052,7 +2052,7 @@ dependencies = [ [[package]] name = "nevmes_core" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "chrono", "clap", @@ -2077,7 +2077,7 @@ dependencies = [ [[package]] name = "nevmes_gui" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "chrono", "console_error_panic_hook", @@ -2101,7 +2101,7 @@ dependencies = [ [[package]] name = "nevmes_message" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "log 0.4.17", diff --git a/Cargo.toml b/Cargo.toml index c0dd939..00050fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nevmes" -version = "0.1.0-alpha" +version = "0.2.0-alpha" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/nevmes-auth/Cargo.lock b/nevmes-auth/Cargo.lock index 345f78a..7a1e1b0 100644 --- a/nevmes-auth/Cargo.lock +++ b/nevmes-auth/Cargo.lock @@ -1189,7 +1189,7 @@ dependencies = [ [[package]] name = "nevmes_auth" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "log 0.4.17", @@ -1199,7 +1199,7 @@ dependencies = [ [[package]] name = "nevmes_core" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "chrono", "clap", diff --git a/nevmes-auth/Cargo.toml b/nevmes-auth/Cargo.toml index db17c02..c6b2974 100644 --- a/nevmes-auth/Cargo.toml +++ b/nevmes-auth/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nevmes_auth" -version = "0.1.0-alpha" +version = "0.2.0-alpha" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/nevmes-contact/Cargo.lock b/nevmes-contact/Cargo.lock index 67af00b..17c3c58 100644 --- a/nevmes-contact/Cargo.lock +++ b/nevmes-contact/Cargo.lock @@ -1189,7 +1189,7 @@ dependencies = [ [[package]] name = "nevmes_contact" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "log 0.4.17", @@ -1199,7 +1199,7 @@ dependencies = [ [[package]] name = "nevmes_core" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "chrono", "clap", diff --git a/nevmes-contact/Cargo.toml b/nevmes-contact/Cargo.toml index bbe4b5c..f73a653 100644 --- a/nevmes-contact/Cargo.toml +++ b/nevmes-contact/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nevmes_contact" -version = "0.1.0-alpha" +version = "0.2.0-alpha" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/nevmes-core/Cargo.toml b/nevmes-core/Cargo.toml index d2d32fe..f1b5efd 100644 --- a/nevmes-core/Cargo.toml +++ b/nevmes-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nevmes_core" -version = "0.1.0-alpha" +version = "0.2.0-alpha" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/nevmes-gui/Cargo.lock b/nevmes-gui/Cargo.lock index 789e385..0ccd79a 100644 --- a/nevmes-gui/Cargo.lock +++ b/nevmes-gui/Cargo.lock @@ -2409,7 +2409,7 @@ dependencies = [ [[package]] name = "nevmes_core" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "chrono", "clap", @@ -2434,7 +2434,7 @@ dependencies = [ [[package]] name = "nevmes_gui" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "bytemuck", "chrono", diff --git a/nevmes-gui/Cargo.toml b/nevmes-gui/Cargo.toml index 1455358..bef6c8f 100644 --- a/nevmes-gui/Cargo.toml +++ b/nevmes-gui/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nevmes_gui" -version = "0.1.0-alpha" +version = "0.2.0-alpha" authors = ["emilk", "creating2morrow "] license = "MIT OR Apache-2.0" edition = "2021" diff --git a/nevmes-gui/src/main.rs b/nevmes-gui/src/main.rs index 69f7006..a707999 100644 --- a/nevmes-gui/src/main.rs +++ b/nevmes-gui/src/main.rs @@ -34,5 +34,5 @@ fn main() -> Result<(), eframe::Error> { std::thread::spawn(move || { rt.block_on(async { loop { tokio::time::sleep(Duration::from_secs(3600)).await; } }) }); - eframe::run_native("nevmes-gui-v0.1.0-alpha", options, Box::new(|cc| Box::new(nevmes_gui::WrapApp::new(cc))),) + eframe::run_native("nevmes-gui-v0.2.0-alpha", options, Box::new(|cc| Box::new(nevmes_gui::WrapApp::new(cc))),) } diff --git a/nevmes-message/Cargo.lock b/nevmes-message/Cargo.lock index 967e8d0..cde1e67 100644 --- a/nevmes-message/Cargo.lock +++ b/nevmes-message/Cargo.lock @@ -1189,7 +1189,7 @@ dependencies = [ [[package]] name = "nevmes_core" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "chrono", "clap", @@ -1214,7 +1214,7 @@ dependencies = [ [[package]] name = "nevmes_message" -version = "0.1.0-alpha" +version = "0.2.0-alpha" dependencies = [ "env_logger", "log 0.4.17", diff --git a/nevmes-message/Cargo.toml b/nevmes-message/Cargo.toml index 9d2f65d..d5e8bfa 100644 --- a/nevmes-message/Cargo.toml +++ b/nevmes-message/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nevmes_message" -version = "0.1.0-alpha" +version = "0.2.0-alpha" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/scripts/build_release.sh b/scripts/build_release.sh index 4076fa5..86fe1dd 100755 --- a/scripts/build_release.sh +++ b/scripts/build_release.sh @@ -3,16 +3,24 @@ # Run from the nevmes root # usage: ./scripts/build_release x.x.x-ver -OUTPUT_DIR=".build/release/nevmes-v$1" -mkdir -p $OUTPUT_DIR +# 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 cargo build --release -cp target/release/nevmes $OUTPUT_DIR -cd nevmes-gui && cargo build --release && cp target/release/nevmes_gui ../$OUTPUT_DIR -cp -r assets/ ../$OUTPUT_DIR +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 cd ../ -cd nevmes-auth && cargo build --release && cp target/release/nevmes_auth ../$OUTPUT_DIR +cd nevmes-auth && cargo build --release && cp target/release/nevmes_auth ../$LINUX_OUTPUT_DIR cd ../ -cd nevmes-contact && cargo build --release && cp target/release/nevmes_contact ../$OUTPUT_DIR +cd nevmes-contact && cargo build --release && cp target/release/nevmes_contact ../$LINUX_OUTPUT_DIR cd ../ -cd nevmes-message && cargo build --release && cp target/release/nevmes_message ../$OUTPUT_DIR +cd nevmes-message && cargo build --release && cp target/release/nevmes_message ../$LINUX_OUTPUT_DIR cd ../ +# make the bzip for linux +tar -cjf $RELEASE_NAME.tar.bz2 $LINUX_OUTPUT_DIR +