fix WSL compatibility change breaking normal build
This commit is contained in:
parent
c05c7d437c
commit
88eaa7f332
1 changed files with 9 additions and 7 deletions
|
@ -434,15 +434,17 @@ class TargetAndroid(Target):
|
|||
join(self.android_sdk_dir, 'tools.save'),
|
||||
join(self.android_sdk_dir, 'tools')
|
||||
)
|
||||
old_android_cmd = self.android_cmd
|
||||
self.android_cmd = join(
|
||||
self.android_sdk_dir,
|
||||
'tools.save',
|
||||
self.android_cmd.split('/')[-1]
|
||||
)
|
||||
old_android_cmd = self.android_cmd
|
||||
self.android_cmd = join(
|
||||
self.android_sdk_dir,
|
||||
'tools.save',
|
||||
self.android_cmd.split('/')[-1]
|
||||
)
|
||||
|
||||
self._android_update_sdk('tools,platform-tools')
|
||||
self.android_cmd = old_android_cmd
|
||||
|
||||
if WSL:
|
||||
self.android_cmd = old_android_cmd
|
||||
sh.rm('-rf', join(self.android_sdk_dir, 'tools.save'))
|
||||
else:
|
||||
self.buildozer.info('Skipping Android SDK update due to spec file setting')
|
||||
|
|
Loading…
Reference in a new issue