| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 | 2 |
| 3 # This file is part of Adblock Plus <https://adblockplus.org/>, |
| 4 # Copyright (C) 2006-present eyeo GmbH |
| 5 # |
| 6 # Adblock Plus is free software: you can redistribute it and/or modify |
| 7 # it under the terms of the GNU General Public License version 3 as |
| 8 # published by the Free Software Foundation. |
| 9 # |
| 10 # Adblock Plus is distributed in the hope that it will be useful, |
| 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 # GNU General Public License for more details. |
| 14 # |
| 15 # You should have received a copy of the GNU General Public License |
| 16 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
| 3 import glob | 18 import glob |
| 4 import json | 19 import json |
| 5 import os | 20 import os |
| 6 import re | 21 import re |
| 7 import shutil | 22 import shutil |
| 8 import string | 23 import string |
| 9 import subprocess | 24 import subprocess |
| 10 import sys | 25 import sys |
| 11 import tempfile | 26 import tempfile |
| 12 | 27 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 sys.exit(6) | 180 sys.exit(6) |
| 166 | 181 |
| 167 if do_build: | 182 if do_build: |
| 168 apk_path = _build(architecture, distribution_mode, build_mode, | 183 apk_path = _build(architecture, distribution_mode, build_mode, |
| 169 config.ANDROID_SDK_PATH, config.ANDROID_NDK_PATH) | 184 config.ANDROID_SDK_PATH, config.ANDROID_NDK_PATH) |
| 170 if do_sign: | 185 if do_sign: |
| 171 _sign(apk_path, config.ANDROID_KEYSTORE_PATH, config.ANDROID_KEY_NAME, | 186 _sign(apk_path, config.ANDROID_KEYSTORE_PATH, config.ANDROID_KEY_NAME, |
| 172 config.ANDROID_SDK_PATH) | 187 config.ANDROID_SDK_PATH) |
| 173 else: | 188 else: |
| 174 print apk_path | 189 print apk_path |
| OLD | NEW |