Skip to content

Commit ea52ff8

Browse files
Copy artifacts to DIST_DIR for AB
Change-Id: I1cfd771fc63e81efe3931cfd10ad6b39d805e9a9
1 parent 367cef7 commit ea52ff8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build_sherlock_platform.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ set -eu
44
PROG_DIR="$(cd "$(dirname "$0")" && pwd)"
55

66
OUT="${PROG_DIR}/out/sherlock-platform"
7+
DIST="${DIST_DIR:-"${OUT}/dist"}"
78

89
readonly AS_BUILD_NUMBER="$(sed 's/\.SNAPSHOT$//' build.txt)"
910

@@ -18,3 +19,9 @@ BUILD_PROPERTIES=(
1819
)
1920

2021
"${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

Comments
 (0)