mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
support official ANDROID_SDK_ROOT env var when running CLI tools
ANDROID_HOME is deprecated: https://developer.android.com/studio/command-line/variables#android_sdk_root !816 #547
This commit is contained in:
parent
4900c426e9
commit
31c29f2fb3
1 changed files with 1 additions and 1 deletions
|
@ -2739,7 +2739,7 @@ def set_FDroidPopen_env(build=None):
|
|||
orig_path = env['PATH']
|
||||
if config:
|
||||
if config.get('sdk_path'):
|
||||
for n in ['ANDROID_HOME', 'ANDROID_SDK']:
|
||||
for n in ['ANDROID_HOME', 'ANDROID_SDK', 'ANDROID_SDK_ROOT']:
|
||||
env[n] = config['sdk_path']
|
||||
for k, v in config.get('java_paths', {}).items():
|
||||
env['JAVA%s_HOME' % k] = v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue