X2CommunityCore / X2ModBuildCommon

An improved XCOM 2 mod build system
MIT License
5 stars 5 forks source link

Better way to include static contents into CookedPCConsole? #41

Open Xymanek opened 3 years ago

Xymanek commented 3 years ago

In CI, we include a static README.txt to explain that these assets are not openable in the editor to any other modmaker who might be curious/interested in them.

To do that, we pre-create the CookedPCConsole directory and place the file there. X2MBC then sees that the directory exists and skips its creation:

https://github.com/X2CommunityCore/X2ModBuildCommon/blob/da647e0f84e553483d2d595d7c7ef1c78f67938d/build_common.ps1#L739-L743

This is confusing to anyone looking at the project/repo itself (not the built mod) who doesn't know this peculiarity of the build process.

Potentially relevant for #40