Fyrox icon indicating copy to clipboard operation
Fyrox copied to clipboard

fyrox-template was installed but cannot be found by bash?

Open Ryder17z opened this issue 3 years ago • 2 comments

I just started taking a look at Fyrox, using https://fyrox-book.github.io/fyrox/beginning/scripting.html and it seems the fyrox-template doesn't install correctly as it will claim to be installed but bash says it cannot be found.

Ryder17z avatar Jul 30 '22 01:07 Ryder17z

Hello, this issue should help https://github.com/FyroxEngine/Fyrox/issues/332 . In short - check $user/.cargo/bin/ folder, and add it to the $PATH. I'll add this to build instructions.

mrDIMAS avatar Jul 30 '22 05:07 mrDIMAS

I don't know how to set that up permanently so I just threw together a band-aid helper:

make_template.sh

#!/bin/bash
echo "adding to $ PATH temporarily"
export PATH=$PATH:/home/ryder/.cargo/bin/
fyrox-template --name platformer

Not ideal but it works.

Ryder17z avatar Jul 30 '22 09:07 Ryder17z

Closing this since book now have a solution for this - https://fyrox-book.github.io/fyrox/beginning/scripting.html#project-generator.

mrDIMAS avatar Aug 18 '22 18:08 mrDIMAS