feat: 完成 issue #85 [树脂] 树脂模板打包与版本发布

This commit is contained in:
2026-08-05 05:21:43 +08:00
parent 6899a2977d
commit 2afea16005
4 changed files with 220 additions and 2 deletions
+2 -2
View File
@@ -72,11 +72,11 @@ def main() -> int:
with open(path, "r", encoding="utf-8") as fh:
yaml.safe_load(fh)
# 3) version.yaml assets 清单存在
# 3) version.yaml assets 清单存在(支持文件与目录条目)
with open(os.path.join(HERE, "version.yaml"), "r", encoding="utf-8") as fh:
version = yaml.safe_load(fh)
for rel in version.get("assets", []):
if not os.path.isfile(os.path.join(HERE, rel)):
if not os.path.exists(os.path.join(HERE, rel)):
failures.append(f"version.yaml 声明资产缺失:{rel}")
# 4) 驾驶舱布局 widget 类型合法