[fix] static_lib version auto update

This commit is contained in:
dianjixz
2025-01-15 11:36:59 +08:00
parent 8a4e7e08de
commit 29ad0ee7df
+2
View File
@@ -26,4 +26,6 @@ if update:
exec(f.read())
down_url = "https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/linux/llm/static_lib_{}.tar.gz".format(version)
down_path = check_wget_down(down_url, "static_lib_{}.tar.gz".format(version))
if os.path.exists(static_lib):
shutil.rmtree(static_lib)
shutil.move(down_path, static_lib)