We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 367cef7 commit 0dbdd99Copy full SHA for 0dbdd99
build_sherlock_platform.sh
@@ -4,6 +4,7 @@ set -eu
4
PROG_DIR="$(cd "$(dirname "$0")" && pwd)"
5
6
OUT="${PROG_DIR}/out/sherlock-platform"
7
+DIST="${DIST_DIR:-"${OUT}/dist"}"
8
9
readonly AS_BUILD_NUMBER="$(sed 's/\.SNAPSHOT$//' build.txt)"
10
@@ -18,3 +19,9 @@ BUILD_PROPERTIES=(
18
19
)
20
21
"${PROG_DIR}/platform/jps-bootstrap/jps-bootstrap.sh" "${BUILD_PROPERTIES[@]}" "${PROG_DIR}" intellij.idea.community.build SherlockPlatformBuild
22
+# --- Android Build Artifact Copy ---
23
+# If DIST_DIR is set (by the Android Build system), copy the contents of OUT
24
+# to the designated artifact directory for Android Build to persist.
25
+echo "Copying artifacts to ${DIST}"
26
+mkdir -p "$DIST"
27
+cp -Rfv "$OUT"/artifacts/sherlock-platform* "$DIST"
0 commit comments