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." |