Bash script for Mac to start rider from command line and open the current Unreal Project.
Like Android Studio with it's studio
and Visual Studio Code with code
we want to be able to just type rider
in a folder and have it do the right thing.
If you run this command from a directory with at least one MyUnrealProject.uproject
file it will open the first one it finds using the version of Rider installed in your Mac /Applications
folder.
- Ensure you have a bash shell (or prepare to modify per platforms below)
- Right click
raw
button and download - Make executable
chmod a+x /usr/local/bin/rider
- Copy or move to somewhere in your path
sudo mv ~/Downloads/rider.txt /usr/local/bin/rider
Would probably work for other bash shells like Linux, or WSL or mingw if you change the command to open rider on lines 4 and 11.
Would probably work for shells that don't use (( ... )) for math expansion like bash does if the test for array empty on line 10 is changed. YMMV.
20/6/25 - fixed to handle passing a file name, and if there is no file name try to open the uproject
file