Zip Java tools for windows
Create a zip archive for the remote Java tools for Windows instead of a tar, which can not be parsed on some other platforms.
Bazel doesn't have the equivalent of a `pkg_zip` rule and this PR introduces two new scripts that use `zip` directly:
`third_party/merge_zip_files.sh`: merges all the given `zip` files into a single `zip`
`third_party/zip_files.sh`: archives all the inputs files under the given directory structure in the output `zip` file
Partial merge of #7708.
PiperOrigin-RevId: 238969545
diff --git a/src/BUILD b/src/BUILD
index 034e2c8..111a1e2 100644
--- a/src/BUILD
+++ b/src/BUILD
@@ -547,3 +547,15 @@
actual = "//src/conditions:windows",
visibility = ["//visibility:public"],
)
+
+sh_binary(
+ name = "zip_files",
+ srcs = ["zip_files.sh"],
+ visibility = ["//visibility:public"],
+)
+
+sh_binary(
+ name = "merge_zip_files",
+ srcs = ["merge_zip_files.sh"],
+ visibility = ["//visibility:public"],
+)