#/bin/bash # Define the array of packages packages=( #"tari_metrics" "tari_libtor" "tari_script" "tari_features" "minotari_wallet_ffi" "minotari_wallet" "minotari_mining_helper_ffi" "tari_mmr_integration_tests" "tari_contacts" "tari_common_types" "minotari_chat_ffi" "minotari_node" "minotari_miner" "minotari_merge_mining_proxy" "minotari_console_wallet" "minotari_app_grpc" "minotari_app_utilities" ) # Loop through each package for p in "${packages[@]}"; do sleep 600 # Step 1: Replace "%%NAME%%" with the current package name in Cargo.tmp sed "s/%%NAME%%/$p/" Cargo.tmp > Cargo.toml # Step 2: Run `cargo build` cargo publish --allow-dirty # Optional: Display a message indicating completion for each package echo "$p Done.\n\n\n" #sleep 60 done