diff --git a/src/BUILD b/src/BUILD index 67fe7f914e1438..ad767d889d7a62 100644 --- a/src/BUILD +++ b/src/BUILD @@ -385,7 +385,7 @@ genrule( # In msys, a file path without .exe suffix(say foo), refers to a file with .exe # suffix(say foo.exe), if foo.exe exists and foo doesn't. So, on windows, we # need to remove bazel.exe first, so that cat to bazel won't fail. - cmd = "rm -f $@; cat $(location //src/main/cpp:client) $(location :package-zip" + jdk + ") > $@ && zip -qA $@", + cmd = "rm -f $@; cat $(location //src/main/cpp:client) $(location :package-zip" + jdk + ") > $@ && zip -qA $@ && chmod a+x $@", executable = 1, output_to_bindir = 1, visibility = [