Make sure the order of the files in the zip file is deterministic.
RELNOTES: None
Closes #8095.
PiperOrigin-RevId: 244242544
diff --git a/src/package-bazel.sh b/src/package-bazel.sh
index 091a55a..34feba3 100755
--- a/src/package-bazel.sh
+++ b/src/package-bazel.sh
@@ -39,7 +39,7 @@
unzip -q -d recompress ${DEPLOY_JAR}
cd recompress
find . -type f -print0 | xargs -0 touch -t 198001010000.00
-zip -0qDr ../deploy-uncompressed.jar *
+find . -type f | sort | zip -q0DX@ ../deploy-uncompressed.jar
cd ..
# The server jar needs to be the first binary we extract. This is how the Bazel