Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit bb65a40

Browse files
authored
Merge pull request #15 from paulproteus/move-stdlib-asset-to-its-own-folder
Store stdlib in its own folder within assets/
2 parents c000539 + 23ec6c4 commit bb65a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

3.7.Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,11 @@ RUN mkdir -p /opt/python-build/app/libs/ && mv rubicon-java-${RUBICON_JAVA_VERSI
203203
ENV ASSETS_DIR $APPROOT/app/src/main/assets/
204204
ARG COMPRESS_LEVEL
205205
ADD 3.7.pythonhome-excludes /opt/python-build/
206-
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 .
206+
RUN mkdir -p "$ASSETS_DIR/stdlib" && cd "$PYTHON_INSTALL_DIR" && zip -x@/opt/python-build/3.7.pythonhome-excludes -$COMPRESS_LEVEL -q "$ASSETS_DIR"/stdlib/pythonhome.${TARGET_ABI_SHORTNAME}.zip -r .
207207
# Rename the ZIP file to include its sha256sum. This enables fast, accurate
208208
# 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
209+
RUN sha256sum "$ASSETS_DIR"/stdlib/pythonhome.${TARGET_ABI_SHORTNAME}.zip | cut -d' ' -f1 > /tmp/sum
210+
RUN mv "$ASSETS_DIR"/stdlib/pythonhome.${TARGET_ABI_SHORTNAME}.zip "$ASSETS_DIR"/stdlib/pythonhome.`cat /tmp/sum`.${TARGET_ABI_SHORTNAME}.zip
211211
RUN cd rubicon-java-${RUBICON_JAVA_VERSION} && zip -$COMPRESS_LEVEL -q "$ASSETS_DIR"/rubicon.zip -r rubicon
212212

213213
RUN apt-get update -qq && apt-get -qq install rsync

0 commit comments

Comments
 (0)