diff gui_ze/gui_ze.bzl @ 247:70f2a3dafc1c

[build] Bundle offline Tectonic runtime Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Mon, 03 Aug 2026 20:20:06 -0700
parents 9c2eec61a152
children 1f9877b637e9
line wrap: on
line diff
--- a/gui_ze/gui_ze.bzl	Mon Aug 03 18:30:45 2026 -0700
+++ b/gui_ze/gui_ze.bzl	Mon Aug 03 20:20:06 2026 -0700
@@ -28,17 +28,10 @@
     if f.path == binary.path:
       continue
 
-    start = 0
-    for directory in f.path.split("/"):
-      if directory == binary.short_path.split("/")[0]:
-        break
-      start += 1
-
-    # Remove the first folder (output) and last file (actaul files that needed to be copied)
-    paths = "/".join(f.path.split("/")[start:-1])
+    paths = "/".join(f.short_path.split("/")[:-1])
     full_path = "{}/{}".format(out_dir.path, paths)
     copy_cmd.append("mkdir -p {}".format(full_path))
-    copy_cmd.append("cp {} {}".format(f.path, full_path))
+    copy_cmd.append("cp -rL {} {}".format(f.path, full_path))
 
   copy_cmd.append("cp {} {}".format(binary.path, out_dir.path))