chore: create_release.sh updated
This commit is contained in:
+13
-2
@@ -176,26 +176,37 @@ cargo_test () {
|
||||
# This will download GB's of docker images
|
||||
cargo_build () {
|
||||
cargo install cross
|
||||
echo -e "${YELLOW}cargo build --release${RESET}"
|
||||
cargo build --release
|
||||
cargo_clean
|
||||
echo -e "${YELLOW}cross build --target x86_64-unknown-linux-musl --release${RESET}"
|
||||
cross build --target x86_64-unknown-linux-musl --release
|
||||
ask_continue
|
||||
cargo_clean
|
||||
echo -e "${YELLOW}cross build --target aarch64-unknown-linux-musl --release${RESET}"
|
||||
cross build --target aarch64-unknown-linux-musl --release
|
||||
ask_continue
|
||||
cargo_clean
|
||||
echo -e "${YELLOW}cross build --target arm-unknown-linux-musleabihf --release${RESET}"
|
||||
cross build --target arm-unknown-linux-musleabihf --release
|
||||
ask_continue
|
||||
cargo_clean
|
||||
echo -e "${YELLOW}cross build --target x86_64-pc-windows-gnu --release${RESET}"
|
||||
cross build --target x86_64-pc-windows-gnu --release
|
||||
ask_continue
|
||||
cargo_clean
|
||||
}
|
||||
|
||||
|
||||
# $1 text to colourise
|
||||
release_continue () {
|
||||
echo -e "\n${PURPLE}$1${RESET}"
|
||||
ask_continue
|
||||
}
|
||||
|
||||
# Clean/remove builds, due to issue with cross-rs
|
||||
cargo_clean() {
|
||||
echo -e "${YELLOW}cargo clean${RESET}"
|
||||
cargo clean
|
||||
}
|
||||
# Check repository for typos
|
||||
check_typos () {
|
||||
echo -e "\n${PURPLE}check typos${RESET}"
|
||||
|
||||
Reference in New Issue
Block a user