RoyalUr.net
RoyalUr.net copied to clipboard
Stop release builds defaulting to do a clean build
Now that there is the option to do a clean build by specifying it when invoking the compilation script, there's no need for the release build to default to doing a clean build.
An alternative to this could be to generate all assets in a separate directory to the code.
e.g. There could be the following directory structure:
build
- Holds all build files
build/website
- Holds the fully built website, including all resource files and code files.
build/assets
- Holds all of the generated assets for the game.
This way a "clean" release build could simply delete the whole website
directory and generate it again. This way we wouldn't have to go through the whole asset generation process every time we want to make a release build. It might still be good to generate all of these assets every time we actually make a release, but generating them every time is over the top expensive when it comes to just testing the release build.