mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 05:35:35 +08:00
Fix: deploy.emulator replace twice
This commit is contained in:
@@ -86,11 +86,10 @@ class VirtualBoxEmulator:
|
|||||||
adb (str): Absolute path to adb.exe
|
adb (str): Absolute path to adb.exe
|
||||||
"""
|
"""
|
||||||
for ori, bak in zip(self.adb_binary, self.adb_backup):
|
for ori, bak in zip(self.adb_binary, self.adb_backup):
|
||||||
if os.path.exists(bak):
|
if not os.path.exists(bak):
|
||||||
os.remove(bak)
|
print(f'Replacing {ori}')
|
||||||
shutil.move(ori, bak)
|
shutil.move(ori, bak)
|
||||||
for file in self.adb_binary:
|
shutil.copy(adb, ori)
|
||||||
shutil.copy(adb, file)
|
|
||||||
|
|
||||||
def adb_recover(self):
|
def adb_recover(self):
|
||||||
""" Revert adb replacement """
|
""" Revert adb replacement """
|
||||||
|
|||||||
Reference in New Issue
Block a user