add release build script

This commit is contained in:
creating2morrow 2023-05-01 09:34:05 -04:00
parent d3c19e226c
commit de31ce6983
6 changed files with 126 additions and 106 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
/core /core
/test-lmdb /test-lmdb
/wallet /wallet
/.build
genkey-batch genkey-batch
monero-wallet-rpc.log monero-wallet-rpc.log
notes.txt notes.txt

70
nevmes-auth/Cargo.lock generated
View file

@ -868,41 +868,6 @@ dependencies = [
"tokio-native-tls", "tokio-native-tls",
] ]
[[package]]
name = "nevmes_auth"
version = "0.1.0-alpha"
dependencies = [
"env_logger",
"nevmes_core",
"log 0.4.17",
"rocket",
]
[[package]]
name = "nevmes_core"
version = "0.1.0-alpha"
dependencies = [
"chrono",
"clap",
"diqwest",
"env_logger",
"gpgme",
"hex",
"hmac",
"jwt",
"lmdb-rs",
"log 0.4.17",
"rand",
"rand_core",
"reqwest",
"rocket",
"schedule_recv",
"serde",
"serde_json",
"sha2 0.10.6",
"tokio",
]
[[package]] [[package]]
name = "iana-time-zone" name = "iana-time-zone"
version = "0.1.55" version = "0.1.55"
@ -1222,6 +1187,41 @@ dependencies = [
"tempfile", "tempfile",
] ]
[[package]]
name = "nevmes_auth"
version = "0.1.0-alpha"
dependencies = [
"env_logger",
"log 0.4.17",
"nevmes_core",
"rocket",
]
[[package]]
name = "nevmes_core"
version = "0.1.0-alpha"
dependencies = [
"chrono",
"clap",
"diqwest",
"env_logger",
"gpgme",
"hex",
"hmac",
"jwt",
"lmdb-rs",
"log 0.4.17",
"rand",
"rand_core",
"reqwest",
"rocket",
"schedule_recv",
"serde",
"serde_json",
"sha2 0.10.6",
"tokio",
]
[[package]] [[package]]
name = "nu-ansi-term" name = "nu-ansi-term"
version = "0.46.0" version = "0.46.0"

View file

@ -868,41 +868,6 @@ dependencies = [
"tokio-native-tls", "tokio-native-tls",
] ]
[[package]]
name = "nevmes_contact"
version = "0.1.0-alpha"
dependencies = [
"env_logger",
"nevmes_core",
"log 0.4.17",
"rocket",
]
[[package]]
name = "nevmes_core"
version = "0.1.0-alpha"
dependencies = [
"chrono",
"clap",
"diqwest",
"env_logger",
"gpgme",
"hex",
"hmac",
"jwt",
"lmdb-rs",
"log 0.4.17",
"rand",
"rand_core",
"reqwest",
"rocket",
"schedule_recv",
"serde",
"serde_json",
"sha2 0.10.6",
"tokio",
]
[[package]] [[package]]
name = "iana-time-zone" name = "iana-time-zone"
version = "0.1.55" version = "0.1.55"
@ -1222,6 +1187,41 @@ dependencies = [
"tempfile", "tempfile",
] ]
[[package]]
name = "nevmes_contact"
version = "0.1.0-alpha"
dependencies = [
"env_logger",
"log 0.4.17",
"nevmes_core",
"rocket",
]
[[package]]
name = "nevmes_core"
version = "0.1.0-alpha"
dependencies = [
"chrono",
"clap",
"diqwest",
"env_logger",
"gpgme",
"hex",
"hmac",
"jwt",
"lmdb-rs",
"log 0.4.17",
"rand",
"rand_core",
"reqwest",
"rocket",
"schedule_recv",
"serde",
"serde_json",
"sha2 0.10.6",
"tokio",
]
[[package]] [[package]]
name = "nu-ansi-term" name = "nu-ansi-term"
version = "0.46.0" version = "0.46.0"

View file

@ -868,41 +868,6 @@ dependencies = [
"tokio-native-tls", "tokio-native-tls",
] ]
[[package]]
name = "nevmes_core"
version = "0.1.0-alpha"
dependencies = [
"chrono",
"clap",
"diqwest",
"env_logger",
"gpgme",
"hex",
"hmac",
"jwt",
"lmdb-rs",
"log 0.4.17",
"rand",
"rand_core",
"reqwest",
"rocket",
"schedule_recv",
"serde",
"serde_json",
"sha2 0.10.6",
"tokio",
]
[[package]]
name = "nevmes_message"
version = "0.1.0-alpha"
dependencies = [
"env_logger",
"nevmes_core",
"log 0.4.17",
"rocket",
]
[[package]] [[package]]
name = "iana-time-zone" name = "iana-time-zone"
version = "0.1.55" version = "0.1.55"
@ -1222,6 +1187,41 @@ dependencies = [
"tempfile", "tempfile",
] ]
[[package]]
name = "nevmes_core"
version = "0.1.0-alpha"
dependencies = [
"chrono",
"clap",
"diqwest",
"env_logger",
"gpgme",
"hex",
"hmac",
"jwt",
"lmdb-rs",
"log 0.4.17",
"rand",
"rand_core",
"reqwest",
"rocket",
"schedule_recv",
"serde",
"serde_json",
"sha2 0.10.6",
"tokio",
]
[[package]]
name = "nevmes_message"
version = "0.1.0-alpha"
dependencies = [
"env_logger",
"log 0.4.17",
"nevmes_core",
"rocket",
]
[[package]] [[package]]
name = "nu-ansi-term" name = "nu-ansi-term"
version = "0.46.0" version = "0.46.0"

18
scripts/build_release.sh Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
# Build nevmes release
# Run from the nevmes root
# usage: ./scripts/build_release x.x.x-ver
OUTPUT_DIR=".build/release/nevmes-v$1"
mkdir -p $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
cd ../
cd nevmes-auth && cargo build --release && cp target/release/nevmes_auth ../$OUTPUT_DIR
cd ../
cd nevmes-contact && cargo build --release && cp target/release/nevmes_contact ../$OUTPUT_DIR
cd ../
cd nevmes-message && cargo build --release && cp target/release/nevmes_message ../$OUTPUT_DIR
cd ../

View file

@ -3,6 +3,7 @@
cd nevmes-auth && cargo clean cd nevmes-auth && cargo clean
cd ../nevmes-contact && cargo clean cd ../nevmes-contact && cargo clean
cd ../nevmes-core && cargo clean cd ../nevmes-core && cargo clean
cd ../nevmes-gui && rm nevmes && cargo clean cd ../nevmes-gui && cargo clean
cd ../nevmes-message && cargo clean cd ../nevmes-message && cargo clean
cd ../ && cargo clean cd ../ && cargo clean
rm -rf .build/