Rename protoc_static for release
PiperOrigin-RevId: 514500346
diff --git a/pkg/BUILD.bazel b/pkg/BUILD.bazel
index 3d871ae..1cb49ed 100644
--- a/pkg/BUILD.bazel
+++ b/pkg/BUILD.bazel
@@ -57,11 +57,17 @@
visibility = ["//visibility:private"],
)
+genrule(
+ name = "rename_protoc",
+ srcs = ["//:protoc_static"],
+ outs = ["bin/protoc"],
+ cmd = "cp $< $@",
+)
+
pkg_files(
name = "protoc_files",
- srcs = ["//:protoc_static"],
+ srcs = ["bin/protoc"],
attributes = pkg_attributes(mode = "0555"),
- prefix = "bin/",
visibility = ["//visibility:private"],
)