From 29d1150ca1ebf6c14c5ea84f9edf60690c4fde22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Tue, 18 Mar 2025 12:41:36 +0100 Subject: [PATCH] prepare publish script --- tools/publish.sh | 56 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 54 insertions(+), 2 deletions(-) diff --git a/tools/publish.sh b/tools/publish.sh index 965aadfa5b..81347d4873 100644 --- a/tools/publish.sh +++ b/tools/publish.sh @@ -1,3 +1,55 @@ +crates=( + bevy_macro_utils + bevy_derive + bevy_ecs/macros + bevy_platform_support + bevy_ptr + bevy_reflect/derive + bevy_utils + bevy_reflect + bevy_tasks + bevy_ecs + bevy_app + bevy_math + bevy_input + bevy_window + bevy_input_focus + bevy_a11y + bevy_asset/macros + bevy_log + bevy_asset + bevy_color + bevy_time + bevy_diagnostic + bevy_encase_derive + bevy_image + bevy_mikktspace + bevy_transform + bevy_mesh + bevy_render/macros + bevy_render + bevy_animation + bevy_audio + bevy_core_pipeline + bevy_picking + bevy_state/macros + bevy_state + bevy_sprite + bevy_text + bevy_ui + bevy_dev_tools + bevy_gilrs + bevy_gizmos/macros + bevy_pbr + bevy_gizmos + bevy_scene + bevy_gltf + bevy_remote + bevy_winit + bevy_internal + bevy_dylib +) + if [ -n "$(git status --porcelain)" ]; then echo "You have local changes!" exit 1 @@ -5,13 +57,13 @@ fi pushd crates -for crate in `cargo package --workspace 2>&1 | grep Packaging | sed 's_.*crates/\(.*\))_\1_' | grep -v Packaging` +for crate in "${crates[@]}" do echo "Publishing ${crate}" pushd "$crate" cargo publish popd - sleep 20 + sleep 5 done popd