prepare publish script

This commit is contained in:
François Mockers 2025-03-18 12:41:36 +01:00
parent 8b6f48ca35
commit 29d1150ca1

View File

@ -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