取消独立升级。修复编译错误。支持Ble和sle
This commit is contained in:
@ -2,6 +2,7 @@ from hashlib import sha256
|
||||
import json
|
||||
import os
|
||||
import shutil
|
||||
import time
|
||||
import zipfile
|
||||
|
||||
# 获取当前目录
|
||||
@ -17,9 +18,12 @@ shutil.rmtree(os.path.join(current_dir, "output", "package.zip"), ignore_errors=
|
||||
os.makedirs(package_dir, exist_ok=True)
|
||||
|
||||
# 复制文件
|
||||
shutil.copy(os.path.join(current_dir, "output", "LPT262_hilink_UPGRADE.bin"),
|
||||
src_file = os.path.join(current_dir, "output", "LPT262_hilink_UPGRADE.bin")
|
||||
while not os.path.exists(src_file):
|
||||
time.sleep(1)
|
||||
shutil.copy(src_file,
|
||||
os.path.join(package_dir, "image2_all_ota1.bin"))
|
||||
shutil.copy(os.path.join(current_dir, "output", "LPT262_hilink_UPGRADE.bin"),
|
||||
shutil.copy(src_file,
|
||||
os.path.join(package_dir, "image2_all_ota2.bin"))
|
||||
|
||||
print("文件已复制到输出目录")
|
||||
|
Reference in New Issue
Block a user