Fixes the release package build script
Removes `copy_godot_scenes` which copies the files from Resources/Scenes into the release package folder. This function breaks builds with the latest commit #220 as it removed the remaining scene (tscn) files from the content repo and deleted the Scenes folder.
This commit is contained in:
@@ -67,8 +67,6 @@ def main():
|
|||||||
|
|
||||||
os.mkdir("release")
|
os.mkdir("release")
|
||||||
|
|
||||||
copy_godot_scenes()
|
|
||||||
|
|
||||||
if "windows" in platforms:
|
if "windows" in platforms:
|
||||||
wipe_bin()
|
wipe_bin()
|
||||||
build_windows()
|
build_windows()
|
||||||
@@ -272,30 +270,6 @@ def copy_content_assemblies(target, zipf, server):
|
|||||||
zipf.write(p(source_dir, x), p(target, x))
|
zipf.write(p(source_dir, x), p(target, x))
|
||||||
|
|
||||||
|
|
||||||
def copy_godot_scenes():
|
|
||||||
target_dir = p("RobustToolbox", "SS14.Client.Godot", "Scenes")
|
|
||||||
from_dir = p("Resources", "Scenes")
|
|
||||||
for path in os.listdir(from_dir):
|
|
||||||
if path.startswith("."):
|
|
||||||
continue
|
|
||||||
|
|
||||||
frompath = p(from_dir, path)
|
|
||||||
targetpath = p(target_dir, path)
|
|
||||||
if os.path.exists(targetpath):
|
|
||||||
if os.path.isfile(targetpath):
|
|
||||||
os.remove(targetpath)
|
|
||||||
|
|
||||||
elif os.path.isdir(targetpath):
|
|
||||||
shutil.rmtree(targetpath)
|
|
||||||
|
|
||||||
else:
|
|
||||||
print("So, what the hell is {} exactly and how did it get there?"
|
|
||||||
.format(targetpath))
|
|
||||||
exit(1)
|
|
||||||
|
|
||||||
copy_dir_or_file(frompath, targetpath)
|
|
||||||
|
|
||||||
|
|
||||||
def copy_dir_or_file(src, dst):
|
def copy_dir_or_file(src, dst):
|
||||||
"""
|
"""
|
||||||
Just something from src to dst. If src is a dir it gets copied recursively.
|
Just something from src to dst. If src is a dir it gets copied recursively.
|
||||||
|
|||||||
Reference in New Issue
Block a user