You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
In addition, use a `*.tmp` filename while building the
support library to avoid merging new contents with old
contents.
Without this, if the pythonhome.*.zip files' hashes change,
the final Python-3.7-Android-support.zip file will contain
all hashes ever seen, rather than just the current hashes.
RUN mkdir -p "$ASSETS_DIR" && cd "$PYTHON_INSTALL_DIR" && zip -x@/opt/python-build/3.7.pythonhome-excludes -$COMPRESS_LEVEL -q "$ASSETS_DIR"/pythonhome.${TARGET_ABI_SHORTNAME}.zip -r .
207
+
# Rename the ZIP file to include its sha256sum. This enables fast, accurate
208
+
# cache validation/invalidation when the ZIP file reaches the Android device.
209
+
RUN sha256sum "$ASSETS_DIR"/pythonhome.${TARGET_ABI_SHORTNAME}.zip | cut -d' ' -f1 > /tmp/sum
210
+
RUN mv "$ASSETS_DIR"/pythonhome.${TARGET_ABI_SHORTNAME}.zip "$ASSETS_DIR"/pythonhome.`cat /tmp/sum`.${TARGET_ABI_SHORTNAME}.zip
207
211
RUN cd rubicon-java-${RUBICON_JAVA_VERSION} && zip -$COMPRESS_LEVEL -q "$ASSETS_DIR"/rubicon.zip -r rubicon
208
212
209
213
RUN apt-get update -qq && apt-get -qq install rsync
0 commit comments