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
|
# This will download GB's of docker images
|
||||||
cargo_build () {
|
cargo_build () {
|
||||||
cargo install cross
|
cargo install cross
|
||||||
echo -e "${YELLOW}cargo build --release${RESET}"
|
cargo_clean
|
||||||
cargo build --release
|
echo -e "${YELLOW}cross build --target x86_64-unknown-linux-musl --release${RESET}"
|
||||||
|
cross build --target x86_64-unknown-linux-musl --release
|
||||||
ask_continue
|
ask_continue
|
||||||
|
cargo_clean
|
||||||
echo -e "${YELLOW}cross build --target aarch64-unknown-linux-musl --release${RESET}"
|
echo -e "${YELLOW}cross build --target aarch64-unknown-linux-musl --release${RESET}"
|
||||||
cross build --target aarch64-unknown-linux-musl --release
|
cross build --target aarch64-unknown-linux-musl --release
|
||||||
ask_continue
|
ask_continue
|
||||||
|
cargo_clean
|
||||||
echo -e "${YELLOW}cross build --target arm-unknown-linux-musleabihf --release${RESET}"
|
echo -e "${YELLOW}cross build --target arm-unknown-linux-musleabihf --release${RESET}"
|
||||||
cross build --target arm-unknown-linux-musleabihf --release
|
cross build --target arm-unknown-linux-musleabihf --release
|
||||||
ask_continue
|
ask_continue
|
||||||
|
cargo_clean
|
||||||
echo -e "${YELLOW}cross build --target x86_64-pc-windows-gnu --release${RESET}"
|
echo -e "${YELLOW}cross build --target x86_64-pc-windows-gnu --release${RESET}"
|
||||||
cross build --target x86_64-pc-windows-gnu --release
|
cross build --target x86_64-pc-windows-gnu --release
|
||||||
ask_continue
|
ask_continue
|
||||||
|
cargo_clean
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# $1 text to colourise
|
# $1 text to colourise
|
||||||
release_continue () {
|
release_continue () {
|
||||||
echo -e "\n${PURPLE}$1${RESET}"
|
echo -e "\n${PURPLE}$1${RESET}"
|
||||||
ask_continue
|
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 repository for typos
|
||||||
check_typos () {
|
check_typos () {
|
||||||
echo -e "\n${PURPLE}check typos${RESET}"
|
echo -e "\n${PURPLE}check typos${RESET}"
|
||||||
|
|||||||
Reference in New Issue
Block a user