diff gui_ze/gui_ze.bzl @ 176:fed99fc04e12 hg-web

[HgWeb] Problem with the emscript lol
author MrJuneJune <me@mrjunejune.com>
date Wed, 21 Jan 2026 19:32:08 -0800
parents 71ad34a8bc9a
children 8cf4ec5e2191
line wrap: on
line diff
--- a/gui_ze/gui_ze.bzl	Tue Jan 20 06:06:47 2026 -0800
+++ b/gui_ze/gui_ze.bzl	Wed Jan 21 19:32:08 2026 -0800
@@ -176,6 +176,8 @@
     command = """
       cp -r third_party/bun/** . \
       && cp -r {src_folder}/** .  \
+      && cp -r ./bazel-out/k8-fastbuild/bin/hg-web/src/** src \
+      && ls src \
       && export NODE_PATH=./node_modules && {bun_path} build {input_path} --outfile {output_path} --target browser
       """.format(
       bun_path = ctx.executable._bun.path,
@@ -274,7 +276,7 @@
     ctx.actions.run_shell(
       inputs = [src],
       outputs = [out],
-      command = "cp \"$1\" \"$2\"",
+      command = "cp -r \"$1\" \"$2\"",
       arguments = [src.path, out.path],
     )
     outs.append(out)