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

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: Remove unnecessary slash character. 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..1e5a9db52608f7991e9e0cfd53b4e3650d2803ed 100755
--- a/build/install-build-deps-android.sh
+++ b/build/install-build-deps-android.sh
@@ -97,4 +97,25 @@ 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
+}
+
+url='https://raw.githubusercontent.com'
+uri='iBotPeaches/Apktool/master/scripts/linux/apktool'
+DownloadBinary apktool /usr/local/bin ${url}/${uri}
friedman1 2015/02/13 00:11:11 DownloadBinary apktool /usr/local/bin \ https://ra
+
+url='https://bitbucket.org'
+uri='iBotPeaches/apktool/downloads/apktool_2.0.0rc3.jar'
+DownloadBinary apktool.jar /usr/local/bin ${url}/${uri}
+
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