mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-08-20 09:57:10 +00:00
Fix directory casing for music and Sound assets
This commit is contained in:
parent
ddfdbcd1bc
commit
79ec8fb439
|
|
@ -24,7 +24,7 @@ src_assets = Path(project_source_root / "Minecraft.Assets")
|
||||||
# clear out any old assets
|
# clear out any old assets
|
||||||
if dest_common.exists():
|
if dest_common.exists():
|
||||||
shutil.rmtree(dest_common, ignore_errors=True)
|
shutil.rmtree(dest_common, ignore_errors=True)
|
||||||
shutil.rmtree(client_build_dir / "music", ignore_errors=True)
|
shutil.rmtree(client_build_dir / "Music", ignore_errors=True)
|
||||||
shutil.rmtree(client_build_dir / "Sound", ignore_errors=True)
|
shutil.rmtree(client_build_dir / "Sound", ignore_errors=True)
|
||||||
# XXX: Check "copy DLC" bellow for info
|
# XXX: Check "copy DLC" bellow for info
|
||||||
# shutil.rmtree(client_build_dir / "DurangoMedia", ignore_errors=True)
|
# shutil.rmtree(client_build_dir / "DurangoMedia", ignore_errors=True)
|
||||||
|
|
@ -38,14 +38,14 @@ shutil.copytree(
|
||||||
# copy the media archive to `Common/Media` inside the folder we just copied.
|
# copy the media archive to `Common/Media` inside the folder we just copied.
|
||||||
shutil.copy(media_archive, client_build_dir / "Common" / "Media")
|
shutil.copy(media_archive, client_build_dir / "Common" / "Media")
|
||||||
|
|
||||||
# copy music and Sound
|
# copy music and Sound with updated paths because putting them in root looks ugly.
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
src_assets / "Common" / "music",
|
src_assets / "Common" / "Music",
|
||||||
client_build_dir / "music"
|
dest_common / "Music"
|
||||||
)
|
)
|
||||||
shutil.copytree(
|
shutil.copytree(
|
||||||
src_assets / "DurangoMedia" / "Sound",
|
src_assets / "DurangoMedia" / "Sound",
|
||||||
client_build_dir / "Sound"
|
dest_common / "Sound"
|
||||||
)
|
)
|
||||||
|
|
||||||
# copy DLC
|
# copy DLC
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue