Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better way to include static contents into CookedPCConsole? #41

Open
Xymanek opened this issue Jun 14, 2021 · 0 comments
Open

Better way to include static contents into CookedPCConsole? #41

Xymanek opened this issue Jun 14, 2021 · 0 comments

Comments

@Xymanek
Copy link
Member

Xymanek commented Jun 14, 2021

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:

# Prepare the folder for cooked stuff
$stagingCookedDir = [io.path]::combine($this.stagingPath, 'CookedPCConsole')
if (!(Test-Path $stagingCookedDir)) {
New-Item -ItemType "directory" -Path $stagingCookedDir
}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant