Making a .exe file from my own game engine

Hi there!!! [might be pretty tough]
i am making my own game engine from unity and i have the most but the only problem is that i want to make a build system where the user makes a game and click on build option…then my game engine should generate an exe file containing all the data made in the game engine but the only problem is i dont know how to implement this!!!
simplified question[
i want to make a build system for my own game engine made in unity but i dont know how to do it!!
if someone could help then it would be appriciable.

The easiest you can do is to supply every build with a pre-built “engine” binary, and supply it with some runtime-loaded data, such as levels, assets, etc

Maybe I’m misunderstanding the problem, but this seems a lot like copyright infringement. You use Unity, a game engine, to build, a game engine. And now you are asking how to make a feature that Unity already has. I’m pretty sure you can’t make a feature like that inside Unity, because you’re not supposed to. Unity is used to make games, it’s not a game engine engine. Games don’t have to export executables. You might want to take a closer look at the Terms of Service before you continue your project. Unity Terms of Service