optimize maixtool command

This commit is contained in:
Neucrack
2024-12-25 12:01:11 +08:00
parent 9ab1743ca0
commit b3748fa92c
2 changed files with 4 additions and 2 deletions

View File

@@ -79,7 +79,6 @@ def check_icon_file(files, icon):
found = False
for src, dst in files.items():
if os.path.isfile(dst):
print(dst, icon)
if dst == icon:
found = True
break
@@ -140,6 +139,9 @@ def pack(project_path, bin_path="main.py", extra_files = {}):
app_info["files"][bin_path] = bin_name
app_info["files"][app_yaml] = app_yaml
app_info["files"].update(extra_files)
icon = app_info.get("icon", "")
if icon and icon not in app_info["files"]:
app_info["files"][icon] = icon
check_icon_file(app_info["files"], app_info.get("icon", ""))
copy_files(app_info["files"], project_path, temp_dir)
# zip

View File

@@ -1,4 +1,4 @@
__version__ = "1.4.1"
__version__ = "1.4.2"