bevy/tools/publish.sh
Mateusz Wachowiak 6533170e94
Add bevy_dev_tools crate (#11341)
# Objective

- Resolves #11309

## Solution

- Add `bevy_dev_tools` crate as a default feature.
- Add `DevToolsPlugin` and add it to an app if the `bevy_dev_tools`
feature is enabled.

`bevy_dev_tools` is reserved by @alice-i-cecile, should we wait until it
gets transferred to cart before merging?

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: BD103 <59022059+BD103@users.noreply.github.com>
2024-03-06 20:33:05 +00:00

75 lines
1.3 KiB
Bash

# if crate A depends on crate B, B must come before A in this list
crates=(
bevy_utils/macros
bevy_utils
bevy_ptr
bevy_macro_utils
bevy_derive
bevy_math
bevy_tasks
bevy_reflect/bevy_reflect_derive
bevy_reflect
bevy_ecs/macros
bevy_ecs
bevy_app
bevy_time
bevy_log
bevy_dynamic_plugin
bevy_asset/macros
bevy_asset
bevy_audio
bevy_core
bevy_diagnostic
bevy_hierarchy
bevy_transform
bevy_window
bevy_encase_derive
bevy_render/macros
bevy_mikktspace
bevy_render
bevy_core_pipeline
bevy_input
bevy_gilrs
bevy_animation
bevy_pbr
bevy_gltf
bevy_scene
bevy_sprite
bevy_gizmos/macros
bevy_gizmos
bevy_text
bevy_a11y
bevy_ui
bevy_winit
bevy_dev_tools
bevy_internal
bevy_dylib
bevy_color
)
if [ -n "$(git status --porcelain)" ]; then
echo "You have local changes!"
exit 1
fi
pushd crates
for crate in "${crates[@]}"
do
echo "Publishing ${crate}"
cp ../LICENSE-MIT "$crate"
cp ../LICENSE-APACHE "$crate"
pushd "$crate"
git add LICENSE-MIT LICENSE-APACHE
cargo publish --no-verify --allow-dirty
popd
sleep 20
done
popd
echo "Publishing root crate"
cargo publish --allow-dirty
echo "Cleaning local state"
git reset HEAD --hard