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

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

Issue 918043004: Add apktool and apktool.jar to install-build-deps-android.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move URL to next line instead of vars. Created 5 years, 10 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..975d82d70b7668f4fdf607d59e009e61a984fbfe 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -97,4 +97,23 @@ if test "$skip_inst_sdk_packages" != 1; then
"$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh"
fi
+DownloadBinary() {
+ bin=$1
+ path=$2
+ url=$3
+ tmpfile=${bin}_$(/bin/date +%s)
+ if [ ! -x ${path}/${bin} ]; then
+ /usr/bin/wget -qO ${tmpfile} ${url}
+ /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}
+ fi
+}
+
+DownloadBinary apktool /usr/local/bin \
+'https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool'
cjhopman 2015/02/18 00:33:06 hm, is this something we should put up on google s
+
+DownloadBinary apktool.jar /usr/local/bin \
+'https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.0rc3.jar'
+
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