From 527ed5ee3a60e4ab290757f240ae7772ffdf8645 Mon Sep 17 00:00:00 2001 From: jon-edward Date: Sun, 18 Feb 2024 12:27:18 -0500 Subject: [PATCH] Fix Assets not being copied over --- build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 1de444e..4d29ec7 100644 --- a/build.py +++ b/build.py @@ -54,10 +54,12 @@ def main( commands = [ ShellCommand(lobster_executable, "--cpp", entry), + ShellCommand(lobster_executable, "--pak", entry), + ShellCommand("cp", "-a", f"{lobster_root.joinpath('data')}/.", wasm_root.joinpath("assets", "data")), + ShellCommand("cp", entry.parent.joinpath("default.lpak"), wasm_root.joinpath("assets", "default.lpak")), ShellCommand("make", "-j8", cwd=wasm_root), ShellCommand("cp", "-a", f"{wasm_root}/.", out_dir), ShellCommand("cp", html, out_dir.joinpath("index.html")), - ShellCommand("cp", "-a", f"{lobster_root.joinpath("data")}/.", out_dir.joinpath("data")) ] if serve: @@ -78,7 +80,6 @@ def main( print() os.makedirs(out_dir, exist_ok=True) - os.makedirs(out_dir.joinpath("data"), exist_ok=True) for command in commands: command.run()