Uses ast-grep to apply some parts of bevy 0.10 to 0.11 migration that can be automated.
You should review any changes this makes.
cargo install ast-grep
sg -p 'Clicked' --rewrite 'Pressed' -U
sg -p 'LAlt' --rewrite 'AltLeft' -U
sg -p 'LControl' --rewrite 'ControlLeft' -U
sg -p 'RControl' --rewrite 'ControlRight' -U
sg -p 'LShift' --rewrite 'ShiftLeft' -U
sg -p 'RShift' --rewrite 'ShiftRight' -U
sg -p 'RAlt' --rewrite 'AltRight' -U
sg -p 'LWin' --rewrite 'SuperLeft' -U
sg -p 'RWin' --rewrite 'SuperRight' -U
sg -p '$APP.add_startup_system($FOO)' --rewrite '$APP.add_systems(Startup, $FOO)' -U
sg -p '$APP.add_plugin($FOO)' --rewrite '$APP.add_plugins($FOO)' -U
sg -p 'apply_system_buffers' --rewrite 'apply_deferred' -U
sg -p '#[derive($$$PRE, FromReflect $$$POST)]' --rewrite '#[derive($$$PRE, $$$POST)]' -U
sg -p '$APP.add_system($$$FOO)' --rewrite '$APP.add_systems(Update, $$$FOO)' -U
cargo fmt
Helful article for examples on how to construct these patterns: https://betterprogramming.pub/migrating-bevy-can-be-easier-with-semi-automation-here-is-how-1f6e21858e79
Comment below with your own and I'll try to keep this updated.