Thanks to Hellzbellz123's suggestion on #1, It turns out to have a much simpler solution to that problem. For the latest boilerplate I personally use for my projects, refer to bevy_boilerplate.
This repository is designed to enable WSL programmers to run Bevy applications, which currently (0.9) only supports Vulkan, which cannot be executed from WSL.
More details about the birth of that boilerplate in my Medium article here.
This script depends on rsync
to copy your source code to the Windows temp folder, so it is important to have this package installed.
# ArchLinux (my case)
$ sudo pacman -S rsync
# Ubuntu
$ sudo apt-get rsync
In order to run it, it is as simple as executing run.sh
script.
$ ./run.sh
This script runs cargo run
command and passes down any argument you need.
# Running in release mode
$ ./run.sh --release