When using il2cpp, how can I automatically delete the folder with the cpp code

Hello

I am using the il2cpp build for Windows.

I would like to have a folder _BackUpThisFolder_ButDontShipItWithYourGame automatically located in the assembly folder.

For example, it was initially saved to another folder, or deleted after build.

Why?

In order not to accidentally send the code along with the assembly

In case you mean in terms of version control syncing between machines, you only need to exclude the library folder (think cpp cache is located there). (Temp/ Obj/ .vs and probably some other folder which I forget don’t need to be included either)

In case you mean for builds, then well cpp library will be included in the build for obvious reasons.

Not sure what you mean with assembly folder as there is no such folder.

I apologize, I didn’t seem to describe the task correctly. When assembled using il2cpp generated folder with intermediate c ++ code (https://docs.unity3d.com/Manual/WindowsPlayerIL2CPPBuildProducedFiles.html). This folder should not be distributed to the end user. I also do not use it, so it would be more convenient to delete or move it automatically immediately after build. At this point in time, I manually delete it every time.