I don’t know your exact use case, but typically installing enduser files during a build is discouraged, since it means only the user who builds your application will be configured to run it. (Or, to put it another way, everyone who wants to run your application has to build it first, precluding any hope of shared builds / binary distributions.
Creating user-space files on first run, in the style of macOS applications, gives your users a lot more flexibility in sharing, managing, and distributing the compiled application.
Just something to consider, as I said I don’t know the exact situation and I can certainly understand that there might be cases where the build-time approach is the way to go.
It’s quite unusual, though, which is why you probably won’t find too much prior art on that sort of thing.