Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1783)

Unified Diff: build/install-build-deps-android.sh

Issue 1287133002: Add apktool and apktool.jar to install-build-deps-android.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: exit 1 Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/install-build-deps-android.sh
diff --git a/build/install-build-deps-android.sh b/build/install-build-deps-android.sh
index cf873811131633b68525736780ac0dcc3e0b8ff6..c171d788266739c680a3416aee1875de0d548241 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -97,4 +97,32 @@ if test "$skip_inst_sdk_packages" != 1; then
"$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh"
fi
+DownloadFromBucket() {
+ bin=$1
+ path=$2
+ gs_url=$3
+ known_hash=$4
+ tmpfile=${bin}_$(/bin/date +%s)
+ if [ ! -x ${path}/${bin} ]; then
+ /b/build/scripts/slave/gsutil cp ${gs_url} ${tmpfile}
+ md5=$(md5sum ${tmpfile} | cut -d' ' -f 1)
+ if [[ $known_hash == $md5 ]]; then
+ /usr/bin/sudo /bin/mv ${tmpfile} ${path}/${bin}
+ /usr/bin/sudo /bin/chmod a+x ${path}/${bin}
+ /usr/bin/sudo /bin/chown root:root ${path}/${bin}
+ else
+ echo 'ERROR: Bad md5sum. Not installing' ${bin}
+ exit 1
+ fi
+ fi
+}
+
+DownloadFromBucket apktool /usr/local/bin \
+'gs://chromium-apktool-bucket/apktool_1_5_2/apktool' \
+89d099df9f8b12c043dc74f6f1368f36
+
+DownloadFromBucket apktool.jar /usr/local/bin \
+'gs://chromium-apktool-bucket/apktool_1_5_2/apktool.jar' \
+2d616934a8eaa37c4501868f05c62871
+
echo "install-build-deps-android.sh complete."
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698