Skip to content

Commit

Permalink
Fix Assets not being copied over
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-edward committed Feb 18, 2024
1 parent 2b6649a commit 527ed5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit 527ed5e

Please sign in to comment.