oot icon indicating copy to clipboard operation
oot copied to clipboard

[Build logic, feature req] Automate rename, assetclean and/or re-extract when asset names change?

Open sirocyl opened this issue 6 months ago • 2 comments

When there's a change in the source that makes asset file locations outdated, a build can fail if one simply pulls down the new source and runs a "dirty" make. Typically the responsibility for keeping source changes from fouling builds lands upon the build system.

Maybe there's a way to trigger a full assetclean, or even to just move/rename/re-extract files from baserom to their new locations, when changes are made in the assets directory in the repo?

Consider it a low-priority request, the status quo doesn't exactly break anything; this is just a convenience matter.

sirocyl avatar Jun 26 '25 13:06 sirocyl

When there are assets/xml/ changes we do expect users to re-run either make setup VERSION=VERSION or ./tools/extract_assets.sh VERSION

There is typically no need to run make assetclean

Dragorn421 avatar Jun 26 '25 15:06 Dragorn421

Ah, okay. It at least worked for me, if a little brute-forced. Either way, it might be possible to automate some of this in the future I'd imagine

sirocyl avatar Jun 26 '25 17:06 sirocyl