OLD | NEW |
---|---|
1 #!/bin/bash -e | 1 #!/bin/bash -e |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script to install everything needed to build chromium on android, including | 7 # Script to install everything needed to build chromium on android, including |
8 # items requiring sudo privileges. | 8 # items requiring sudo privileges. |
9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions | 9 # See http://code.google.com/p/chromium/wiki/AndroidBuildInstructions |
10 | 10 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out | 90 grep -v 'javaplugin.so' "${TEMPDIR}"/update-java-alternatives.out |
91 exit 1 | 91 exit 1 |
92 fi | 92 fi |
93 fi | 93 fi |
94 | 94 |
95 # Install SDK packages for android | 95 # Install SDK packages for android |
96 if test "$skip_inst_sdk_packages" != 1; then | 96 if test "$skip_inst_sdk_packages" != 1; then |
97 "$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh" | 97 "$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh" |
98 fi | 98 fi |
99 | 99 |
100 DownloadBinary() { | |
101 bin=$1 | |
102 path=$2 | |
103 url=$3 | |
104 tmpfile=${bin}_$(/bin/date +%s) | |
105 if [ ! -x ${path}/${bin} ]; then | |
106 /usr/bin/wget -qO ${tmpfile} ${url} | |
107 /usr/bin/sudo /bin/mv ${tmpfile} ${path}/${bin} | |
108 /usr/bin/sudo /bin/chmod a+x ${path}/${bin} | |
109 /usr/bin/sudo /bin/chown root:root ${path}/${bin} | |
110 fi | |
111 } | |
112 | |
113 url='https://raw.githubusercontent.com' | |
114 uri='iBotPeaches/Apktool/master/scripts/linux/apktool' | |
115 DownloadBinary apktool /usr/local/bin ${url}/${uri} | |
friedman1
2015/02/13 00:11:11
DownloadBinary apktool /usr/local/bin \
https://ra
| |
116 | |
117 url='https://bitbucket.org' | |
118 uri='iBotPeaches/apktool/downloads/apktool_2.0.0rc3.jar' | |
119 DownloadBinary apktool.jar /usr/local/bin ${url}/${uri} | |
120 | |
100 echo "install-build-deps-android.sh complete." | 121 echo "install-build-deps-android.sh complete." |
OLD | NEW |