C7-Game / Prototype

An early-stage, open-source 4X strategy game
https://c7-game.github.io/
MIT License
33 stars 9 forks source link

153 - Move resources into folders and copy all at once #345

Closed QuintillusCFC closed 1 year ago

QuintillusCFC commented 1 year ago

This is the precursor to being able to add our own units. It adds two folder - Art and Text - and moves our resources into them.

So far, Art contains just the title PCX, and text contains credits.txt and the static JSON.

It should work just fine when we add sub-folders.

There's a test action build using these changes at https://github.com/C7-Game/Prototype/actions/runs/3070488664 I have already verified the Windows one works as expected.

As a side improvement, if the static copy fails for some reason, formerly it gave a warning in the GitHub Actions console but still succeeded. Now it still prints the warning, but will also fail the build. This wound up being much easier than trying to fail if the Godot build itself failed.

QuintillusCFC commented 1 year ago

Self-reviewed. Saw that the old static-JSON paths should be removed from .gitattributes and did that, but otherwise looks sensible.