You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there!
I might just be overlooking something, but is there a way to set the working directory for ./fips run to the project folder?
I have some assets that need to be loaded in during runtime, which would end up in the same folder as the executable in the finished deployment. As of now, I am calling ./fips build and then manually invoking the produced binary in the correct path.
edit: grammar
The text was updated successfully, but these errors were encountered:
It's an obscure feature and I don't think it's documented anywhere, but you can add a run: section to the fips.yml file in the root directory where you can provide a cwd for specific run targets, for instance like this:
For more advanced things you're probably better off writing a 'generator script' (misleading name, since originally those were meant as code generator scripts, but they can also be used to build a simple 'asset pipeline', for instance this project contains two common utility scripts, one for copying asset files, and one for generating a header with embedded binary data:
...but if the executable is 'bootstrapped' in the same build process setting up the right dependencies could be tricky... I don't think I have an example around for that situation.
Hi there!
I might just be overlooking something, but is there a way to set the working directory for
./fips run
to the project folder?I have some assets that need to be loaded in during runtime, which would end up in the same folder as the executable in the finished deployment. As of now, I am calling
./fips build
and then manually invoking the produced binary in the correct path.edit: grammar
The text was updated successfully, but these errors were encountered: