Mercurial
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 246:4f2b50bc78e7 | 247:70f2a3dafc1c |
|---|---|
| 26 | 26 |
| 27 for f in runfiles_files: | 27 for f in runfiles_files: |
| 28 if f.path == binary.path: | 28 if f.path == binary.path: |
| 29 continue | 29 continue |
| 30 | 30 |
| 31 start = 0 | 31 paths = "/".join(f.short_path.split("/")[:-1]) |
| 32 for directory in f.path.split("/"): | |
| 33 if directory == binary.short_path.split("/")[0]: | |
| 34 break | |
| 35 start += 1 | |
| 36 | |
| 37 # Remove the first folder (output) and last file (actaul files that needed to be copied) | |
| 38 paths = "/".join(f.path.split("/")[start:-1]) | |
| 39 full_path = "{}/{}".format(out_dir.path, paths) | 32 full_path = "{}/{}".format(out_dir.path, paths) |
| 40 copy_cmd.append("mkdir -p {}".format(full_path)) | 33 copy_cmd.append("mkdir -p {}".format(full_path)) |
| 41 copy_cmd.append("cp {} {}".format(f.path, full_path)) | 34 copy_cmd.append("cp -rL {} {}".format(f.path, full_path)) |
| 42 | 35 |
| 43 copy_cmd.append("cp {} {}".format(binary.path, out_dir.path)) | 36 copy_cmd.append("cp {} {}".format(binary.path, out_dir.path)) |
| 44 | 37 |
| 45 ctx.actions.run_shell( | 38 ctx.actions.run_shell( |
| 46 inputs = runfiles_files, | 39 inputs = runfiles_files, |