Closed maxsupermanhd closed 2 years ago
Yeah I agree it's not ideal. The main problem here is that the exe expects the assets to be located at ../Assets/<version>
so if the output is moved, nothing would work.
I might eventually rework this system one day, perhaps by copying all the required assets at the right location, but this is clearly not a priority.
Why not move assets with binary? Or store them in user-based storage like in ~/.local/share
Not that this is very bad but it is super annoying to deal with. You also can bake assets right into binary, not only it can speed stuff up but will provide self-contained binary that relies on no environment
Yes moving the assets with binary is what I meant when I said "copying the required assets". I think this is the best approach.
I'm not a fan of user based storage because of two reasons:
Done with latest version. You can use BOTCRAFT_OUTPUT_DIR
in cmake to specify a custom output folder.
Cmake build system made possible to build projects from outside of root directory in order to have several builds saved, technique with all binaries in project root under ./bin/ is horrible and should be reconsidered.