How do I package a demo while maintaining the full build?

I have the same goal and also do not want to make a full branch just because I have exactly one file with one Property (“isDemo”) which differs in branches. Did you ever found a way to pass “something” to the build-process so it is knowing if “IsDemo” (e.g. in GameInstance) is true or false?

I read the answer of VictorBurgos, but I also do not like the idea of editing files and set back every time. If someone knows a solution would be cool .

thanks a lot